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

Use ip instead of website

This commit is contained in:
Ycarus 2018-05-13 21:24:27 +02:00
parent b26c636f0d
commit 3bc3a9b1d7
2 changed files with 13 additions and 8 deletions

View file

@ -8,11 +8,13 @@ log() {
logger -p daemon.info -t "${basename}" "$@"
}
timeout=${OMR_TRACKER_TIMEOUT:-1}
timeout=${OMR_TRACKER_TIMEOUT:-2}
interval=${OMR_TRACKER_INTERVAL:-10}
retry=${OMR_TRACKER_TRIES:-2}
retry=${OMR_TRACKER_TRIES:-4}
proxy=${OMR_TRACKER_PROXY:-127.0.0.1:1111}
hosts=${OMR_TRACKER_HOSTS:-google.com bing.com}
hosts=${OMR_TRACKER_HOSTS:-1.1.1.1 23.96.52.53}
nodns=0
last=0
@ -27,6 +29,5 @@ while true; do
/etc/init.d/shadowsocks-libev rules_down 2> /dev/null
last=0
fi
sleep "${interval}"
done

View file

@ -16,8 +16,12 @@ config defaults 'defaults'
config shadowsocks 'shadowsocks'
option enabled '1'
list hosts 'google.com'
list hosts 'bing.com'
option timeout '1'
option tries '2'
list hosts '1.1.1.1'
list hosts '1.0.0.1'
list hosts '212.27.48.10'
list hosts '23.96.52.53'
list hosts '104.40.211.35'
list hosts '80.67.169.12'
option timeout '2'
option tries '4'
option interval '10'