forked from extern/shorewall_code
Back out previous change to providers
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6290 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
0d00d30d94
commit
f4df6dce05
@ -187,8 +187,7 @@ sub setup_providers() {
|
|||||||
$gateway = '$gateway';
|
$gateway = '$gateway';
|
||||||
} elsif ( $gateway && $gateway ne '-' ) {
|
} elsif ( $gateway && $gateway ne '-' ) {
|
||||||
validate_address $gateway;
|
validate_address $gateway;
|
||||||
my $variable = get_interface_address $interface;
|
emit "run_ip route replace $gateway src \$(find_first_interface_address $interface) dev $interface table $number";
|
||||||
emit "run_ip route replace $gateway src $variable dev $interface table $number";
|
|
||||||
emit "run_ip route add default via $gateway dev $interface table $number";
|
emit "run_ip route add default via $gateway dev $interface table $number";
|
||||||
} else {
|
} else {
|
||||||
$gateway = '';
|
$gateway = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user