mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
ids-functions.pl: Quote array of subnets
Reported-by: Daniel Weismüller <daniel.weismueller@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
76a1dedb4f
commit
7479c99349
@@ -677,7 +677,7 @@ sub generate_home_net_file() {
|
||||
}
|
||||
|
||||
# Format home net declaration.
|
||||
my $line = "[" . join(',', @networks) . "]";
|
||||
my $line = "\"[" . join(',', @networks) . "]\"";
|
||||
|
||||
# Open file to store the addresses of the home net.
|
||||
open(FILE, ">$homenet_file") or die "Could not open $homenet_file. $!\n";
|
||||
|
||||
Reference in New Issue
Block a user