From: Arne Fitzenreiter Date: Sat, 27 Mar 2010 21:17:04 +0000 (+0100) Subject: Fix connection.cgi display for strongswan. X-Git-Tag: v2.9-beta1~412^2~12 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=5ba51b82044c90706e3fd2313621fd2f7646ae76;hp=db073a101e354ae047e1c5c113b50d03de1058de Fix connection.cgi display for strongswan. --- diff --git a/html/cgi-bin/connections.cgi b/html/cgi-bin/connections.cgi index 9cf4f68520..b370d12881 100644 --- a/html/cgi-bin/connections.cgi +++ b/html/cgi-bin/connections.cgi @@ -57,7 +57,7 @@ if (open(IP, "${General::swroot}/red/local-ipaddress")) { push(@colour, ${Header::colourfw} ); } -my @vpn = ` route -n | grep ipsec | awk '{ print \$1" "\$3}'`; +my @vpn = `grep "rightsubnet=" /etc/ipsec.conf | cut -f2 -d"=" | sed "s|/| |g"`; foreach my $route (@vpn) { chomp($route); my @temp = split(/[\t ]+/, $route);