From 96af7bfed6ad5042e816f9663e3e01f492760e76 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Wed, 13 Apr 2011 17:56:15 -0700 Subject: [PATCH] Fix the prior commit --- Shorewall/Perl/Shorewall/Nat.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Nat.pm b/Shorewall/Perl/Shorewall/Nat.pm index c009eaad8..ce1456313 100644 --- a/Shorewall/Perl/Shorewall/Nat.pm +++ b/Shorewall/Perl/Shorewall/Nat.pm @@ -207,8 +207,9 @@ sub process_one_masq( ) } else { my $ports = $addr; $ports =~ s/^://; - $ports =~ s/-/:/; - validate_portpair( $proto, $ports ); + my $portrange = $ports; + $portrange =~ s/-/:/; + validate_portpair( $proto, $portrange ); $addrlist .= "--to-ports $ports "; $exceptionrule = do_proto( $proto, '', '' ); }