diff options
author | Daniil Baturin <daniil@vyos.io> | 2021-03-03 20:16:57 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-03 20:16:57 +0700 |
commit | 06522e435baff270c794da4aba21ff1e9ba72216 (patch) | |
tree | 7c01bb4ae282399008a832447d40a83e1f913070 | |
parent | 6f591c7b909cac87e1914fa644b3f3f3bd7ed763 (diff) | |
parent | 8c879a23f9438f1d0d2acf56134be816ece69e05 (diff) | |
download | vyatta-op-vpn-06522e435baff270c794da4aba21ff1e9ba72216.tar.gz vyatta-op-vpn-06522e435baff270c794da4aba21ff1e9ba72216.zip |
Merge pull request #26 from lsenecaux/patch-1
T3380: fix show vpn ike sa with IPv6 Peers
-rw-r--r-- | lib/OPMode.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/OPMode.pm b/lib/OPMode.pm index 013e896..4d41a91 100644 --- a/lib/OPMode.pm +++ b/lib/OPMode.pm @@ -33,7 +33,7 @@ sub conv_id { my $peer = pop(@_); if ( $peer =~ /\d+\.\d+\.\d+\.\d+/ ){ $peer = $peer; - } elsif ($peer =~ /\d+\:\d+\:\d+\:\d+\:\d+\:\d+\:\d+\:\d+/){ + } elsif ($peer =~ /([A-Fa-f0-9]+)\:([A-Fa-f0-9]+)\:([A-Fa-f0-9]+)\:([A-Fa-f0-9]+)\:([A-Fa-f0-9]+)\:([A-Fa-f0-9]+)\:([A-Fa-f0-9]+)\:([A-Fa-f0-9]+)\:/){ $peer = $peer; } elsif ($peer =~ /\%any/){ $peer = "any"; |