mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-27 10:03:41 +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 '' if $net eq ALLIPv4;
|
||||||
return '' unless $capabilities{CONNTRACK_MATCH};
|
return '' unless $capabilities{CONNTRACK_MATCH};
|
||||||
|
|
||||||
if ( $net =~ /^!/ ) {
|
if ( $net =~ s/^!// ) {
|
||||||
$net =~ s/!//;
|
|
||||||
validate_net $net, 1;
|
validate_net $net, 1;
|
||||||
"-m conntrack --ctorigdst ! $net ";
|
"-m conntrack --ctorigdst ! $net ";
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user