From patchwork Wed May 20 12:29:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 3115 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 49RsX72Wyjz43nd for ; Wed, 20 May 2020 12:29:59 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 49RsX61fPGz1kY; Wed, 20 May 2020 12:29:58 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 49RsX56kLVz2yZX; Wed, 20 May 2020 12:29:57 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 49RsX42xwBz2xcM for ; Wed, 20 May 2020 12:29:56 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 49RsX16JYfz12f; Wed, 20 May 2020 12:29:53 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1589977793; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NG+iCe7aCRtzkKxpnScm95h1VazlzUAByDMclPM7bSc=; b=G5asFZhyrcb3+mlGo2dZyTjZYK3x6g6RodQx/g/qhVsduw/PtxGh06hI03ZqMWCYfqOLx6 oMLE8qWRPbNgycBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1589977793; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NG+iCe7aCRtzkKxpnScm95h1VazlzUAByDMclPM7bSc=; b=aTrqYsgdY1yCnd7fyYv6Nxs+8dxzUUeRwIlhUQJJR8vAKlIuf1tyNHaMIrTp5LZa10Nxul YjCxlvYo17uYQc3bb54wGgExfryEhTdDhhM9+QS5UMe3+GVCyiabMrm9xQjYDuR/Axx8Ij 149sxiE9tmV5giy1/o2MQZoCG1jfwgJLMArtZGlQaBjB8nt8VYcGjEAP6rehVA16rZXvMa 8j2y1jVcqnssNvxSAJCeyMH0Lf1No9EE+lZfGPXd/X7aVB3cbRCdkV99faKwR9AMjRRLSq TbAUNmBV8MPnrdfWQiWNez/18Fmm8ELkKfrsp0LkhQowC93Ucm0TmPz0PkOspA== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH] ids-functions.pl: Quote array of subnets Date: Wed, 20 May 2020 12:29:48 +0000 Message-Id: <20200520122948.11071-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Reported-by: Daniel Weismüller Signed-off-by: Michael Tremer --- config/cfgroot/ids-functions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index e33569849..d45e1c70a 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -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";