1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Set ping-restart parameter to 60 instead of 120 for OpenVPN

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-01-17 18:27:20 +01:00
parent 9d53bf202f
commit 83643aa07b

View file

@ -46,6 +46,7 @@ if [ "$(uci -q get openvpn.omr.proto)" != "tcp-client" ]; then
set openvpn.omr.rcvbuf=0
set openvpn.omr.route_delay=5
set openvpn.omr.disable_dco=1
set openvpn.omr.ping_restart=60
commit openvpn
EOF
fi
@ -54,6 +55,12 @@ if [ -z "$(uci -q get openvpn.omr.disable_dco)" ]; then
set openvpn.omr.disable_dco=1
commit openvpn
EOF
fi
if [ -z "$(uci -q get openvpn.omr.ping_restart)" ]; then
uci -q batch <<-EOF >/dev/null
set openvpn.omr.ping_restart=60
commit openvpn
EOF
fi