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

Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Steffen Klammer
2020-10-16 10:08:52 +02:00
committed by Michael Tremer
parent 7ad39d931a
commit badd010f86

View File

@@ -3004,7 +3004,8 @@ END
)
{
chomp $temp[1];
print FILE " ||\n (isInNet(myIpAddress(), \"$temp[0]\", \"$temp[1]\"))";
my $tempmask = &Network::convert_prefix2netmask($temp[1]);
print FILE " ||\n (isInNet(myIpAddress(), \"$temp[0]\", \"$tempmask\"))";
}
}