mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
connections.cgi: Fix page crash with IPsec connections with one subnet only
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -10,6 +10,7 @@ etc/rc.d/rc0.d/K51vnstat
|
|||||||
etc/rc.d/rc3.d/S01vnstat
|
etc/rc.d/rc3.d/S01vnstat
|
||||||
etc/rc.d/rc6.d/K51vnstat
|
etc/rc.d/rc6.d/K51vnstat
|
||||||
opt/pakfire/lib/functions.pl
|
opt/pakfire/lib/functions.pl
|
||||||
|
srv/web/ipfire/cgi-bin/connections.cgi
|
||||||
srv/web/ipfire/cgi-bin/routing.cgi
|
srv/web/ipfire/cgi-bin/routing.cgi
|
||||||
usr/sbin/convert-portfw
|
usr/sbin/convert-portfw
|
||||||
var/ipfire/general-functions.pl
|
var/ipfire/general-functions.pl
|
||||||
|
|||||||
@@ -262,7 +262,7 @@ close(IPSEC);
|
|||||||
foreach my $line (@ipsec) {
|
foreach my $line (@ipsec) {
|
||||||
my @vpn = split(',', $line);
|
my @vpn = split(',', $line);
|
||||||
|
|
||||||
my @subnets = split('|', $vpn[12]);
|
my @subnets = split(/\|/, $vpn[12]);
|
||||||
for my $subnet (@subnets) {
|
for my $subnet (@subnets) {
|
||||||
my ($network, $mask) = split("/", $subnet);
|
my ($network, $mask) = split("/", $subnet);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user