Tighen up editing of 'balance=nnn'

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6285 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-08 17:04:06 +00:00
parent eda48ec9cf
commit f35199fc6a

View File

@ -232,7 +232,7 @@ sub setup_providers() {
fatal_error "The 'track' option requires a numeric value in the MARK column" if $mark eq '-';
$routemarked_interfaces{$interface} = $mark;
push @routemarked_interfaces, $interface;
} elsif ( $option =~ /^balance=(\d+)/ ) {
} elsif ( $option =~ /^balance=(\d+)$/ ) {
balance_default_route $1 , $gateway, $interface;
} elsif ( $option eq 'balance' ) {
balance_default_route 1 , $gateway, $interface;