mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 19:00:34 +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:
@@ -262,7 +262,7 @@ close(IPSEC);
|
||||
foreach my $line (@ipsec) {
|
||||
my @vpn = split(',', $line);
|
||||
|
||||
my @subnets = split('|', $vpn[12]);
|
||||
my @subnets = split(/\|/, $vpn[12]);
|
||||
for my $subnet (@subnets) {
|
||||
my ($network, $mask) = split("/", $subnet);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user