mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-29 09:38:51 +01:00
Another tiny optimizaiton
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8484 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
cf62d0f084
commit
da78a4d453
@ -1474,8 +1474,7 @@ sub match_orig_dest ( $ ) {
|
||||
return '' if $net eq ALLIPv4;
|
||||
return '' unless $capabilities{CONNTRACK_MATCH};
|
||||
|
||||
if ( $net =~ /^!/ ) {
|
||||
$net =~ s/!//;
|
||||
if ( $net =~ s/^!// ) {
|
||||
validate_net $net, 1;
|
||||
"-m conntrack --ctorigdst ! $net ";
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user