forked from extern/shorewall_code
Handle SNAT 'ADDRESS' without enclosing [...]
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
34c6013f1b
commit
de1a5a8024
@ -262,6 +262,14 @@ sub process_one_masq1( $$$$$$$$$$ )
|
||||
$exceptionrule = do_proto( $proto, '', '' );
|
||||
$addrlist .= "--toports $ports ";
|
||||
}
|
||||
} else {
|
||||
if ( $addr =~ /^(.+)-(.+)$/ ) {
|
||||
validate_range( $1, $2 );
|
||||
} else {
|
||||
validate_address $addr, 0;
|
||||
}
|
||||
|
||||
$addrlist .= "--to-source $addr ";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user