wireguard client keepalive

This commit is contained in:
Yumin Wu
2024-05-08 17:40:43 +08:00
parent c3df9ea7fa
commit 4ca840239a
3 changed files with 3 additions and 0 deletions

View File

@@ -284,6 +284,7 @@ Address = {client_cidr} # should assign an ip from this cidr manually
PublicKey = {my_public_key}
AllowedIPs = {allow_ips}
Endpoint = {listenr_addr} # should be the public ip of the vpn server
PersistentKeepalive = 25
"#,
peer_secret_key = BASE64_STANDARD.encode(cfg.peer_secret_key()),
my_public_key = BASE64_STANDARD.encode(cfg.my_public_key()),