fixes persistent keepalive

This commit is contained in:
2026-05-15 12:10:30 +03:00
parent 3881b87f2a
commit 6ce07ceb28
+1 -3
View File
@@ -231,8 +231,6 @@ parse_from_ini() {
} }
write_config() { write_config() {
PERSISTENT_KEEPALIVE=25
if [ "$ENABLE_TUN" = "1" ]; then if [ "$ENABLE_TUN" = "1" ]; then
EXCLUDE_IFACE=$(detect_default_interface) || { EXCLUDE_IFACE=$(detect_default_interface) || {
echo "Warning: could not detect default network interface, using eth0" >&2 echo "Warning: could not detect default network interface, using eth0" >&2
@@ -423,7 +421,7 @@ DEFSEOF
"port": $PORT, "port": $PORT,
"public_key": "$PUBLIC_KEY", "public_key": "$PUBLIC_KEY",
"allowed_ips": "$ALLOWED_IPS", "allowed_ips": "$ALLOWED_IPS",
"persistent_keepalive_interval": "${PERSISTENT_KEEPALIVE}s" "persistent_keepalive_interval": 25
} }
], ],
"udp_timeout": "5m0s", "udp_timeout": "5m0s",