From 5ba51b82044c90706e3fd2313621fd2f7646ae76 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sat, 27 Mar 2010 22:17:04 +0100 Subject: [PATCH 1/1] Fix connection.cgi display for strongswan. --- html/cgi-bin/connections.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2