mirror of
https://github.com/angristan/wireguard-install.git
synced 2025-04-05 03:43:30 +03:00
Revert "Fix client subnet mask"
This commit accidentally breaks IPv6 when several clients are connected at the
same time, and it is more correct to use /24 and /64 subnets as it is used in
WireGuard examples (for example, Basic Usage [1]).
[1]: https://www.wireguard.com/papers/wireguard.pdf.
This reverts commit 0d65a00844
.
Signed-off-by: ElXreno <elxreno@gmail.com>
This commit is contained in:
parent
a1b1ac2ece
commit
34c0b6a846
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ function newClient() {
|
|||
# Create client file and add the server as a peer
|
||||
echo "[Interface]
|
||||
PrivateKey = ${CLIENT_PRIV_KEY}
|
||||
Address = ${CLIENT_WG_IPV4}/32,${CLIENT_WG_IPV6}/128
|
||||
Address = ${CLIENT_WG_IPV4}/24,${CLIENT_WG_IPV6}/64
|
||||
DNS = ${CLIENT_DNS_1},${CLIENT_DNS_2}
|
||||
|
||||
[Peer]
|
||||
|
|
Loading…
Add table
Reference in a new issue