[2/2] Modified file : html/cgi-bin/connections.cgi
Commit Message
Add IPSec network in vpn color code.
---
html/cgi-bin/connections.cgi | 9 +++++++++
1 file changed, 9 insertions(+)
@@ -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);