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

Increase omr-tracker default check number

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-10-09 13:16:02 +02:00
parent e0f08f96f5
commit df725837f1
2 changed files with 2 additions and 2 deletions

View file

@ -559,7 +559,7 @@ fi
[ -z "$download" ] && download="$(uci -q get sqm.$OMR_TRACKER_INTERFACE.download)" [ -z "$download" ] && download="$(uci -q get sqm.$OMR_TRACKER_INTERFACE.download)"
upload="$(uci -q get network.$OMR_TRACKER_INTERFACE.uploadspeed)" upload="$(uci -q get network.$OMR_TRACKER_INTERFACE.uploadspeed)"
[ -z "$upload" ] && upload="$(uci -q get sqm.$OMR_TRACKER_INTERFACE.upload)" [ -z "$upload" ] && upload="$(uci -q get sqm.$OMR_TRACKER_INTERFACE.upload)"
if [ "$(uci show | grep mptcpr)" = "" ]; then if [ "$(uci -q show | grep mptcpr)" = "" ]; then
touch /etc/config/openmptcprouter touch /etc/config/openmptcprouter
fi fi
if [ "$(uci -q get openmptcprouter.$OMR_TRACKER_INTERFACE.vpn)" != "1" ] && [ "$(pgrep glorytun-udp)" != "" ] && ([ "$(glorytun-udp path | grep $OMR_TRACKER_DEVICE_IP)" = "" ] || [ "$(glorytun-udp path $OMR_TRACKER_DEVICE_IP | awk '{print $13}')" = "0" ] || [ "$(glorytun-udp path $OMR_TRACKER_DEVICE_IP | awk '{print $16}')" = "0" ]); then if [ "$(uci -q get openmptcprouter.$OMR_TRACKER_INTERFACE.vpn)" != "1" ] && [ "$(pgrep glorytun-udp)" != "" ] && ([ "$(glorytun-udp path | grep $OMR_TRACKER_DEVICE_IP)" = "" ] || [ "$(glorytun-udp path $OMR_TRACKER_DEVICE_IP | awk '{print $13}')" = "0" ] || [ "$(glorytun-udp path $OMR_TRACKER_DEVICE_IP | awk '{print $16}')" = "0" ]); then

View file

@ -12,7 +12,7 @@ config defaults 'defaults'
list hosts '114.114.114.114' list hosts '114.114.114.114'
list hosts '114.114.115.115' list hosts '114.114.115.115'
option timeout '2' option timeout '2'
option tries '2' option tries '3'
option interval '2' option interval '2'
option interval_tries '1' option interval_tries '1'
option type 'ping' option type 'ping'