]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
wireguard.cgi: Allow full access to everywhere by default for RW
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Apr 2025 11:06:47 +0000 (13:06 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Apr 2025 11:06:47 +0000 (13:06 +0200)
I think this is a more what people would expect.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/wireguard.cgi

index cb70ce30b29f0d9a339cbb5dd2401b86b5310564..315bb9adc6cb02a199e8205e23448895aba2145e 100644 (file)
@@ -1311,9 +1311,7 @@ EDITHOST:
        # Set defaults
        unless (defined $key) {
                &General::set_defaults(\%cgiparams, {
-                       "LOCAL_SUBNETS" =>
-                               $Network::ethernet{"GREEN_NETADDRESS"}
-                               . "/" . $Network::ethernet{"GREEN_NETMASK"},
+                       "LOCAL_SUBNETS" => "0.0.0.0/0",
                });
        }