mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-17 14:33:00 +02:00
Fix connection.cgi display for strongswan.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user