summaryrefslogtreecommitdiff
path: root/src/command_proc_show_vpn.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/command_proc_show_vpn.cc')
-rw-r--r--src/command_proc_show_vpn.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/command_proc_show_vpn.cc b/src/command_proc_show_vpn.cc
index 6f2ed0a..9ee7a35 100644
--- a/src/command_proc_show_vpn.cc
+++ b/src/command_proc_show_vpn.cc
@@ -560,12 +560,18 @@ CommandProcShowVPN::process_conf(bool debug)
src = "0.0.0.0";
}
}
+ else if (line.find("leftid=") != string::npos) {
+ src = line.substr(pos + 1, line.length() - pos - 2);
+ }
else if (line.find("right=") != string::npos) {
dst=line.substr(pos+1,line.length()-pos-2);
if (dst == "%any") {
dst = "0.0.0.0";
}
}
+ else if (line.find("rightid=") != string::npos) {
+ dst = line.substr(pos + 1, line.length() - pos - 2);
+ }
else if (line.find("rightsubnet=") != string::npos) {
rightnet=line.substr(pos+1,line.length()-pos-2);
}