Makes more sense to call it rblzone

This commit is contained in:
Mark Felder 2021-01-26 14:00:04 -06:00
parent 00828731fb
commit 617ec63483
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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",