]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
modified proxy.cgi to make it possible that all subnets declared in "network access...
authorSteffen Klammer <steffen.klammer@staderschulen.de>
Fri, 16 Oct 2020 08:08:52 +0000 (10:08 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 19 Oct 2020 09:25:53 +0000 (09:25 +0000)
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/proxy.cgi

index fdf9bddaf1cfadd72fe8a0e70aec1593f75c759c..a63e1c2dfba67b463763bf091705f277698dbe67 100644 (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\"))";
                                }
                        }