Revert another replace->add change.

- Also includes a cosmetic change.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-03-27 06:57:49 -07:00
parent 6334b09653
commit 8fe7963631

View File

@ -783,7 +783,7 @@ CEOF
$address = get_interface_address $interface unless $address; $address = get_interface_address $interface unless $address;
if ( $family == F_IPV4 ) { if ( $family == F_IPV4 ) {
emit "run_ip route replace $gateway src $address dev $physical ${mtu}"; emit "run_ip route replace $gateway src $address dev $physical ${mtu}";
emit "run_ip route add $gateway src $address dev $physical ${mtu}table $id $realm"; emit "run_ip route replace $gateway src $address dev $physical ${mtu}table $id $realm";
} else { } else {
emit "qt \$IP -6 route add $gateway src $address dev $physical ${mtu}"; emit "qt \$IP -6 route add $gateway src $address dev $physical ${mtu}";
emit "qt \$IP -6 route del $gateway src $address dev $physical ${mtu}table $id $realm"; emit "qt \$IP -6 route del $gateway src $address dev $physical ${mtu}table $id $realm";