aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman')
-rwxr-xr-xMailman/Defaults.py.in4
-rw-r--r--Mailman/Utils.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in
index a124832d..7a86f63c 100755
--- a/Mailman/Defaults.py.in
+++ b/Mailman/Defaults.py.in
@@ -146,8 +146,8 @@ RECAPTCHA_SECRET_KEY = None
GLOBAL_BAN_LIST = []
# IF the following is set to Yes, and a web subscribe comes from an IPv4
-# address and the IP is listed in Spamhaus ZEN, the subscription will be
-# blocked.
+# address and the IP is listed in Spamhaus SBL, CSS or XBL, the subscription
+# will be blocked.
BLOCK_SPAMHAUS_LISTED_IP_SUBSCRIBE = No
# Command that is used to convert text/html parts into plain text. This
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index 2f9bda63..cdc82366 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -1513,6 +1513,6 @@ def banned_ip(ip):
if not ans:
return False
text = ans.rrset.to_text()
- if re.search(r'127\.0\.0\.\d{1,2}$', text, re.MULTILINE):
+ if re.search(r'127\.0\.0\.[2-7]$', text, re.MULTILINE):
return True
return False