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

Fix tracker

This commit is contained in:
Ycarus 2018-10-13 23:02:11 +02:00
parent ec9bf36bd4
commit d1b193295a

View file

@ -285,7 +285,7 @@ if [ "$(uci -q get openmptcprouter.$OMR_TRACKER_INTERFACE.lc)" = "" ] || [ $(($(
[ -z "$asn" ] && {
asn="$(whois $ipaddr 2>/dev/null | grep -m 1 -i 'netname' | awk '{print $2}')"
}
[ -z "$(openmptcprouter.$OMR_TRACKER_INTERFACE)" ] && {
[ -z "$(uci -q get openmptcprouter.$OMR_TRACKER_INTERFACE)" ] && {
uci -q set openmptcprouter.$OMR_TRACKER_INTERFACE=interface
}
local serverip=$(uci -q get shadowsocks-libev.sss0.server)