mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
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:
committed by
Michael Tremer
parent
7ad39d931a
commit
badd010f86
@@ -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\"))";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user