From 9ef726eeb272104656baf3c38eca75c4dc5bea10 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 1 Jun 2025 15:19:13 +0200 Subject: [PATCH] wireguard-functions.pl: Fix ListenPort The option was incorrectly named "Port" before. Signed-off-by: Michael Tremer --- config/cfgroot/wireguard-functions.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 { -- 2.39.5