mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-23 19:21:21 +02:00
Correct change that tightened editing of IPv6 addresses
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
22f1d1ba89
commit
1f30976790
@ -536,7 +536,7 @@ sub valid_6address( $ ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return 0 if @address > $max;
|
return 0 if @address > $max;
|
||||||
return 0 unless $address =~ /^[a-f:]+$/;
|
return 0 unless $address =~ /^[a-f:\d]+$/;
|
||||||
return 0 unless ( @address == $max ) || $address =~ /::/;
|
return 0 unless ( @address == $max ) || $address =~ /::/;
|
||||||
return 0 if $address =~ /:::/ || $address =~ /::.*::/;
|
return 0 if $address =~ /:::/ || $address =~ /::.*::/;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user