From 617ec6348312b95e13a558f3480adda0c517aca5 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Tue, 26 Jan 2021 14:00:04 -0600 Subject: [PATCH] Makes more sense to call it rblzone --- config/config.exs | 2 +- lib/pleroma/web/activity_pub/mrf/dns_rbl_policy.ex | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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",