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:
parent
cbd4e182a6
commit
6a6eff1150
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user