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:
parent
f34ff67f58
commit
d1209f1f6c
1 changed files with 17 additions and 11 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue