Fix ADDRESSES=detect with ADD_SNAT_ALIASES=Yes

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6115 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-04-25 16:00:15 +00:00
parent c32ee9a18c
commit 7db77a4b22

View File

@ -217,6 +217,7 @@ sub setup_one_masq($$$$$$)
for my $address ( split /,/, $addresses ) {
my ( $addrs, $port ) = split /:/, $address;
next unless $addrs;
next if $addrs eq 'detect';
for my $addr ( ip_range_explicit $addrs ) {
unless ( $addresses_to_add{$addr} ) {
emit "del_ip_addr $addr $interface" unless $config{RETAIN_ALIASES};