From: Arne Fitzenreiter Date: Sun, 13 Jun 2010 13:31:14 +0000 (+0200) Subject: Change source of ipsec setting of connections.cgi. X-Git-Tag: v2.9-beta1~234 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=f370c68ce3e5b4abf3efaa0a3a3d48269c28ed61 Change source of ipsec setting of connections.cgi. fixes bug #0000637 --- diff --git a/html/cgi-bin/connections.cgi b/html/cgi-bin/connections.cgi index b370d12881..7b53c009ec 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 = `grep "rightsubnet=" /etc/ipsec.conf | cut -f2 -d"=" | sed "s|/| |g"`; +my @vpn = `/usr/local/bin/ipsecctrl I|grep erouted|cut -d"]" -f3|cut -d"=" -f4|cut -d";" -f1| sed "s|/| |g"`; foreach my $route (@vpn) { chomp($route); my @temp = split(/[\t ]+/, $route);