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

Update public IP/proxy IP more often

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-11-08 10:34:12 +01:00
parent d883e569b4
commit fac5855bbe
4 changed files with 14 additions and 4 deletions

View file

@ -133,7 +133,8 @@ while true; do
/etc/init.d/v2ray rules_up 2> /dev/null
_get_ip
fi
[ "$(uci -q get openmptcprouter.omr.detected_public_ipv4)" = "" ] || ([ "$(uci -q get openmptcprouter.settings.disable_ipv6)" != "1" ] && [ "$(uci -q get openmptcprouter.omr.detected_public_ipv6)" = "" ]) && _get_ip
#[ "$(uci -q get openmptcprouter.omr.detected_public_ipv4)" = "" ] || ([ "$(uci -q get openmptcprouter.settings.disable_ipv6)" != "1" ] && [ "$(uci -q get openmptcprouter.omr.detected_public_ipv6)" = "" ]) && _get_ip
_get_ip
last=0
OMR_TRACKER_STATUS="OK"
else