3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-01-23 02:24:25 +01:00

Support nat cloaks for banmasks

This commit is contained in:
Pragmatic Software 2015-07-14 07:29:27 -07:00
parent cbd4e182a6
commit 6a6eff1150

View File

@ -531,6 +531,8 @@ sub address_to_mask {
$banmask = "*.$1"; $banmask = "*.$1";
} elsif($address =~ m{^gateway/([^/]+)/([^/]+)/}) { } elsif($address =~ m{^gateway/([^/]+)/([^/]+)/}) {
$banmask = "gateway/$1/$2/*"; $banmask = "gateway/$1/$2/*";
} elsif($address =~ m{^nat/([^/]+)/}) {
$banmask = "nat/$1/*";
} elsif($address =~ m/^([^:]+):([^:]*):([^:]*):([^:]*):([^:]*):([^:]*):([^:]*):([^:]*)$/) { } elsif($address =~ m/^([^:]+):([^:]*):([^:]*):([^:]*):([^:]*):([^:]*):([^:]*):([^:]*)$/) {
$banmask = "$1:$2:*"; $banmask = "$1:$2:*";
} else { } else {