From 982c65b580a097a461aff1db2c467df2b42fea6d Mon Sep 17 00:00:00 2001 From: John Southworth Date: Mon, 11 Jul 2011 12:34:28 -0500 Subject: Bugfix 7316: remove next-hop router from vpn connection line before parsing since we don't display it currently (cherry picked from commit 42a754b96d8d0964a5b828722081edfbc007ad3f) --- lib/OPMode.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/OPMode.pm') diff --git a/lib/OPMode.pm b/lib/OPMode.pm index c6991b0..b94a1e0 100644 --- a/lib/OPMode.pm +++ b/lib/OPMode.pm @@ -217,6 +217,7 @@ sub process_tunnels{ _lifetime => 'n/a', _expire => 'n/a' }; } + $line =~ s/---.*\.\.\./.../g; # remove the next hop router for local-ip 0.0.0.0 case if ($line =~ /IKE.proposal:(.*?)\/(.*?)\/(.*)/){ $tunnel_hash{$connectid}->{_ikeencrypt} = $1; $tunnel_hash{$connectid}->{_ikehash} = $2; -- cgit v1.2.3