From f4df6dce0585699cb9e3dbbb7230b6d878a0994c Mon Sep 17 00:00:00 2001 From: teastep Date: Tue, 8 May 2007 20:03:19 +0000 Subject: [PATCH] Back out previous change to providers git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6290 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- 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 bcdca5df3..92f333bf5 100644 --- a/Shorewall-perl/Shorewall/Providers.pm +++ b/Shorewall-perl/Shorewall/Providers.pm @@ -187,8 +187,7 @@ sub setup_providers() { $gateway = '$gateway'; } elsif ( $gateway && $gateway ne '-' ) { validate_address $gateway; - my $variable = get_interface_address $interface; - emit "run_ip route replace $gateway src $variable dev $interface table $number"; + emit "run_ip route replace $gateway src \$(find_first_interface_address $interface) dev $interface table $number"; emit "run_ip route add default via $gateway dev $interface table $number"; } else { $gateway = '';