From ff566655f74bdbbba135520d7b29633b4d18fa6a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 27 Apr 2025 17:47:39 +0200 Subject: [PATCH] wireguard-functions.pl: Append /32 subnet mask to client address Some clients seem to want this or otherwise refuse the import. Signed-off-by: Michael Tremer --- config/cfgroot/wireguard-functions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/cfgroot/wireguard-functions.pl b/config/cfgroot/wireguard-functions.pl index 53e8f1a38..fb9829724 100644 --- a/config/cfgroot/wireguard-functions.pl +++ b/config/cfgroot/wireguard-functions.pl @@ -429,7 +429,7 @@ sub generate_peer_configuration($$) { push(@conf, "[Interface]", "PrivateKey = $private_key", - "Address = @{ $peer->{'CLIENT_ADDRESS'} }", + "Address = @{ $peer->{'CLIENT_ADDRESS'} }/32", ); # Optionally add DNS servers -- 2.39.5