]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
wireguard-functions.pl: Append /32 subnet mask to client address
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 27 Apr 2025 15:47:39 +0000 (17:47 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 27 Apr 2025 15:47:39 +0000 (17:47 +0200)
Some clients seem to want this or otherwise refuse the import.

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

index 53e8f1a3808d60d8b6716530db7419c592e3db09..fb9829724adda4ed4f1820fa8d2147ccd0ef4c3e 100644 (file)
@@ -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