mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add a timeout on all resolveip requests
This commit is contained in:
parent
f2546261fe
commit
bf8cc3b4db
15 changed files with 26 additions and 26 deletions
|
@ -480,7 +480,7 @@ add_xray_redirect_rules() {
|
|||
remote_servers="$(echo $OUTBOUND_SERVERS \
|
||||
| tr ' ' '\n' \
|
||||
| sort -u \
|
||||
| xargs -n 1 resolveip \
|
||||
| xargs -n 1 resolveip -t 5 \
|
||||
| sort -u)"
|
||||
|
||||
[ "$(uci -q get xray.main_transparent_proxy.redirect_udp)" = "1" ] && [ "$(uci -q get xray.omrout.protocol)" != "socks" ] && portudp="$port"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue