mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
Support IPv6 banmasks
This commit is contained in:
parent
0db12b82ae
commit
2e9f15b7e2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user