mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-02 04:23:11 +01:00
Correct validation of 4in6 addresses
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
3258806f6c
commit
c319921365
@ -530,7 +530,7 @@ sub valid_6address( $ ) {
|
|||||||
return 0 unless valid_4address pop @address;
|
return 0 unless valid_4address pop @address;
|
||||||
$max = 6;
|
$max = 6;
|
||||||
$address = join ':', @address;
|
$address = join ':', @address;
|
||||||
return 1 if @address eq ':';
|
return 1 if $address eq ':';
|
||||||
} else {
|
} else {
|
||||||
$max = 8;
|
$max = 8;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user