[2/2] Modified file : html/cgi-bin/connections.cgi

Message ID 20180709200740.28846-1-blais.julien.30@gmail.com
State Dropped
Headers show
Series [1/2] File modified : html/cgi-bin/vpnmain.cgi | expand

Commit Message

Julien Blais July 10, 2018, 6:07 a.m. UTC
Add IPSec network in vpn color code.
---
 html/cgi-bin/connections.cgi | 9 +++++++++
 1 file changed, 9 insertions(+)

Patch

diff --git a/html/cgi-bin/connections.cgi b/html/cgi-bin/connections.cgi
index e9e9e335c..0e3680d20 100644
--- a/html/cgi-bin/connections.cgi
+++ b/html/cgi-bin/connections.cgi
@@ -256,6 +256,15 @@  if (-e "${General::swroot}/ovpn/ccd.conf") {
 	}
 }
 
+#Add IPSec net
+
+my %ipsecsettings=();
+&General::readhash("${General::swroot}/vpn/settings", \%ipsecsettings);
+my ($network, $mask) = split("/", $ipsecsettings{'RW_NET'});
+push(@network, $network);
+push(@masklen, $mask);
+push(@colour, ${Header::colourvpn
+
 open(IPSEC, "${General::swroot}/vpn/config");
 my @ipsec = <IPSEC>;
 close(IPSEC);