From: Michael Tremer Date: Sun, 1 Jun 2025 13:19:13 +0000 (+0200) Subject: wireguard-functions.pl: Fix ListenPort X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ef726eeb272104656baf3c38eca75c4dc5bea10;p=ipfire-2.x.git wireguard-functions.pl: Fix ListenPort The option was incorrectly named "Port" before. Signed-off-by: Michael Tremer --- diff --git a/config/cfgroot/wireguard-functions.pl b/config/cfgroot/wireguard-functions.pl index 11451a615..437c345ed 100644 --- a/config/cfgroot/wireguard-functions.pl +++ b/config/cfgroot/wireguard-functions.pl @@ -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 {