diff options
author | UnicronNL <khagen@multi.eu> | 2016-05-10 11:18:11 +0200 |
---|---|---|
committer | UnicronNL <khagen@multi.eu> | 2016-05-10 11:18:11 +0200 |
commit | 1f7528e003d6c1d3c061065fa44773caf74874a9 (patch) | |
tree | 3ea23bc94953168f5edd90a3cee6fdf141b5e0bb | |
parent | 397864e7371df953b0c5093493f49a5a2cd935c2 (diff) | |
download | vyatta-op-vpn-1f7528e003d6c1d3c061065fa44773caf74874a9.tar.gz vyatta-op-vpn-1f7528e003d6c1d3c061065fa44773caf74874a9.zip |
Show some tunnel information.
-rw-r--r-- | lib/OPMode.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/OPMode.pm b/lib/OPMode.pm index cea7236..49bc966 100644 --- a/lib/OPMode.pm +++ b/lib/OPMode.pm @@ -203,9 +203,9 @@ sub process_tunnels{ my %tunnel_hash = (); my %esp_hash = (); foreach my $line (@ipsecstatus) { - if (($line =~ /\"(peer-.*-tunnel-.*?)\"/)){ + if (($line =~ /(peer-.*-tunnel-.*?):/)){ my $connectid = $1; - if (($line =~ /\"(peer-.*-tunnel-.*?)\"(\[\d*\])/)){ + if (($line =~ /(peer-.*-tunnel-.*?):(\[\d*\])/)){ $connectid .= $2; } $connectid =~ /peer-(.*)-tunnel-(.*)/; |