From d0861e813b67864f2212ddae383c8b9160f8d7e8 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 12 Aug 2017 08:15:18 -0700 Subject: [PATCH] Make Shorewall's handling of '+' consistent with that of iptables Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Zones.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Zones.pm b/Shorewall/Perl/Shorewall/Zones.pm index 8d23f9f29..a2c58a68c 100644 --- a/Shorewall/Perl/Shorewall/Zones.pm +++ b/Shorewall/Perl/Shorewall/Zones.pm @@ -1575,9 +1575,7 @@ sub known_interface($) # # We have wildcard interfaces -- see if this interface matches one of their roots # - while ( length $iface > $minroot ) { - chop $iface; - + while ( length $iface >= $minroot ) { if ( my $i = $roots{$iface} ) { # # Found one @@ -1599,6 +1597,8 @@ sub known_interface($) }; return $interfaceref; } + + chop $iface; } }