From 6a6eff1150e35a35c938f6fba328b071e52055ed Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 14 Jul 2015 07:29:27 -0700 Subject: [PATCH] Support nat cloaks for banmasks --- PBot/AntiFlood.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PBot/AntiFlood.pm b/PBot/AntiFlood.pm index 3244f746..a976cd7a 100644 --- a/PBot/AntiFlood.pm +++ b/PBot/AntiFlood.pm @@ -531,6 +531,8 @@ sub address_to_mask { $banmask = "*.$1"; } elsif($address =~ m{^gateway/([^/]+)/([^/]+)/}) { $banmask = "gateway/$1/$2/*"; + } elsif($address =~ m{^nat/([^/]+)/}) { + $banmask = "nat/$1/*"; } elsif($address =~ m/^([^:]+):([^:]*):([^:]*):([^:]*):([^:]*):([^:]*):([^:]*):([^:]*)$/) { $banmask = "$1:$2:*"; } else {