diff --git a/config/config.exs b/config/config.exs index b673d35d7..a8e0129b4 100644 --- a/config/config.exs +++ b/config/config.exs @@ -402,7 +402,7 @@ config :pleroma, :mrf_vocabulary, config :pleroma, :mrf_dnsrbl, nameserver: "bl.pleroma.com", port: 53, - zone: nil + rblzone: nil # threshold of 7 days config :pleroma, :mrf_object_age, diff --git a/lib/pleroma/web/activity_pub/mrf/dns_rbl_policy.ex b/lib/pleroma/web/activity_pub/mrf/dns_rbl_policy.ex index 0f1eaa94f..fc963a782 100644 --- a/lib/pleroma/web/activity_pub/mrf/dns_rbl_policy.ex +++ b/lib/pleroma/web/activity_pub/mrf/dns_rbl_policy.ex @@ -31,7 +31,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.DnsRblPolicy do # -- irrespective of the actual hostname/IP used to reach it -- we need to know this as all queries # are nested under the zone. e.g., if you're checking the status of pleroma.host you are querying for: # dig @nameserverip pleroma.host.bl.pleroma.com. in A - rblzone = rblconfig[:zone] || rblhost + rblzone = rblconfig[:rblzone] || rblhost # concatenate the host we're checking with the zone, e.g., "pleroma.host" <> . <> "bl.pleroma.com" <> . # trim off duplicate trailing period in case it was supplied in the config. @@ -98,7 +98,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.DnsRblPolicy do suggestions: ["53"] }, %{ - key: :zone, + key: :rblzone, type: {:string}, description: "Zone for querying, if unable to detect because nameserver is an IP address",