3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-06 11:28:43 +02:00

Support IPv6 banmasks

This commit is contained in:
Pragmatic Software 2015-03-23 04:18:33 -07:00
parent 0db12b82ae
commit 2e9f15b7e2

View File

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