From 6367cc6f4563f7243bc18e71cd0db801c74c8f7f Mon Sep 17 00:00:00 2001 From: teastep Date: Sun, 18 Nov 2007 01:48:54 +0000 Subject: [PATCH] Cosmetic changes git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7684 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Providers.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Shorewall-perl/Shorewall/Providers.pm b/Shorewall-perl/Shorewall/Providers.pm index 3672b0691..b0ae6480f 100644 --- a/Shorewall-perl/Shorewall/Providers.pm +++ b/Shorewall-perl/Shorewall/Providers.pm @@ -295,7 +295,6 @@ sub add_a_provider( $$$$$$$$ ) { } push @routemarked_providers, $providers{$table}; - } my $realm = ''; @@ -303,7 +302,7 @@ sub add_a_provider( $$$$$$$$ ) { if ( $shared ) { fatal_error "The 'shared' option requires a gateway" unless $gateway; - $providers{$table}{mac} = get_interface_mac( $gateway, $interface , $table ); + $providers{$table}{mac} = get_interface_mac( $gateway, $interface , $table ); $realm = "realm $number"; } @@ -330,7 +329,7 @@ sub add_a_provider( $$$$$$$$ ) { } balance_default_route $balance , $gateway, $interface, $realm if $balance; - + if ( $loose ) { if ( $config{DELETE_THEN_ADD} ) { emit ( "\nfind_interface_addresses $interface | while read address; do", @@ -392,7 +391,6 @@ sub add_an_rtrule( $$$$ ) { fatal_error "You must specify either the source or destination in a route_rules entry" if $source eq '-' && $dest eq '-'; - if ( $dest eq '-' ) { $dest = 'to ' . ALLIPv4; } else {