From mboxrd@z Thu Jan 1 00:00:00 1970 From: steffen.klammer@staderschulen.de To: development@lists.ipfire.org Subject: [PATCH] modified proxy.cgi to make it possible that all subnets declared in "network access control" will be translated from cidr to subnet notation in proxy.pac Date: Fri, 16 Oct 2020 10:08:52 +0200 Message-ID: <20201016080852.1222419-1-steffen.klammer@staderschulen.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5385630599834333965==" List-Id: --===============5385630599834333965== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Steffen Klammer --- html/cgi-bin/proxy.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/cgi-bin/proxy.cgi b/html/cgi-bin/proxy.cgi index fdf9bddaf..a63e1c2df 100644 --- a/html/cgi-bin/proxy.cgi +++ b/html/cgi-bin/proxy.cgi @@ -3004,7 +3004,8 @@ END ) { chomp $temp[1]; - print FILE " ||\n (isInNet(myIpAddress(), \"$temp[0]\", \"$temp[1]\= "))"; + my $tempmask =3D &Network::convert_prefix2netmask($temp[1]); + print FILE " ||\n (isInNet(myIpAddress(), \"$temp[0]\", \"$tempmask= \"))"; } } =20 --=20 2.25.1 --===============5385630599834333965==--