From: Michael Tremer Date: Sun, 27 Apr 2025 15:47:39 +0000 (+0200) Subject: wireguard-functions.pl: Append /32 subnet mask to client address X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ff566655f74bdbbba135520d7b29633b4d18fa6a;p=ipfire-2.x.git 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 --- 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