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:
parent
8186a375b9
commit
fb145bf53e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue