mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 04:02:37 +01:00
Support IPv6 banmasks
This commit is contained in:
parent
0db12b82ae
commit
2e9f15b7e2
@ -490,6 +490,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/^([^:]+):([^:]*):([^:]*):([^:]*):([^:]*):([^:]*):([^:]*):([^:]*)$/) {
|
||||||
|
$banmask = "$1:$2:*";
|
||||||
} else {
|
} else {
|
||||||
$banmask = $address;
|
$banmask = $address;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user