1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-14 19:41:51 +00:00

Apply glorytun-udp settings

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-12-15 15:43:42 +01:00
parent f34ff67f58
commit d1209f1f6c

View file

@ -20,7 +20,13 @@ set_default() {
[ "$iface" = "$DEVICE" ] && [ "$enable" = "1" ] && {
config_get localip "$config" localip
config_get remoteip "$config" remoteip
config_get kxtimeout "$config" kxtimeout "7d"
config_get timetolerance "$config" timetolerance "10m"
config_get keepalive "$config" keepalive "25s"
[ "$remoteip" != "" ] && [ "$localip" != "" ] && ifconfig $DEVICE $localip pointopoint $remoteip up
while [ -z "$(glorytun-udp list | grep $iface)" ]; do
glorytun-udp set dev $iface kxtimeout $kxtimeout timetolerance $timetolerance keepalive $keepalive
done
}
}