Add IPSec network in vpn color code. --- html/cgi-bin/connections.cgi | 9 +++++++++ 1 file changed, 9 insertions(+)
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);