1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2024-08-27 09:33:23 +02:00
parent f2546261fe
commit bf8cc3b4db
15 changed files with 26 additions and 26 deletions

View file

@ -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"