From 3541767881cfefc9cd9b7cf4c62db5381cb5bb1e Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 26 Dec 2011 11:58:06 -0800 Subject: [PATCH] Don't croak when adding gateway route fails for IPv6. Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Providers.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Providers.pm b/Shorewall/Perl/Shorewall/Providers.pm index b779dcd6b..a7cedbd42 100644 --- a/Shorewall/Perl/Shorewall/Providers.pm +++ b/Shorewall/Perl/Shorewall/Providers.pm @@ -599,8 +599,7 @@ sub add_a_provider( $$ ) { emit "run_ip route replace $gateway src $address dev $physical ${mtu}"; emit "run_ip route replace $gateway src $address dev $physical ${mtu}table $number $realm"; } else { - emit "qt \$IP -6 route del $gateway src $address dev $physical ${mtu}"; - emit "run_ip 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 $number $realm"; emit "run_ip route add $gateway src $address dev $physical ${mtu}table $number $realm"; }