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

Fix omr-test-speed, bind it to an interface if requested

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-11-23 20:19:04 +01:00 committed by suyuan
parent 8186a375b9
commit fb145bf53e

View file

@ -29,6 +29,6 @@ else
domain=$(echo $HOST | awk -F/ '{print $3}')
hostip=$(dig +nocmd +noall +answer A $domain | grep -v CNAME | awk '{print $5}' | tr -d "\n")
ipset add ss_rules_dst_bypass_all $hostip
curl -4 $HOST >/dev/null || echo
curl -4 --interface $INTERFACE $HOST >/dev/null || echo
ipset del ss_rules_dst_bypass_all $hostip
fi