]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
wireguard-functions.pl: Fix ListenPort
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 1 Jun 2025 13:19:13 +0000 (15:19 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 1 Jun 2025 13:19:13 +0000 (15:19 +0200)
The option was incorrectly named "Port" before.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cfgroot/wireguard-functions.pl

index 11451a6153bb0440936abc96fd9377b2185b39b2..437c345ed93a5b2828399366955db5b082247037 100644 (file)
@@ -411,7 +411,7 @@ sub generate_peer_configuration($$) {
                push(@conf,
                        "[Interface]",
                        "PrivateKey = $private_key",
-                       "Port = $peer->{'ENDPOINT_PORT'}",
+                       "ListenPort = $peer->{'ENDPOINT_PORT'}",
                        "",
                        "[Peer]",
                        "Endpoint = ${endpoint}:$peer->{'PORT'}",
@@ -524,8 +524,8 @@ sub parse_configuration($$) {
                                # Store the address
                                $peer{'LOCAL_ADDRESS'} = ${address};
 
-                       # Port
-                       } elsif ($key eq "Port") {
+                       # ListenPort
+                       } elsif ($key eq "ListenPort") {
                                if (&General::validport($val)) {
                                        $peer{'PORT'} = $val;
                                } else {