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:
Michael Tremer
2020-05-20 12:29:48 +00:00
committed by Arne Fitzenreiter
parent 76a1dedb4f
commit 7479c99349

View File

@@ -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";