mirror of
https://github.com/itdoginfo/podkop.git
synced 2026-01-30 22:32:49 +03:00
fix: use nslookup_attempts for DNS check loop instead of nslookup_timeout
This commit is contained in:
@@ -490,7 +490,7 @@ list_update() {
|
|||||||
local i
|
local i
|
||||||
|
|
||||||
# DNS Check
|
# DNS Check
|
||||||
for i in $(seq 1 $nslookup_timeout); do
|
for i in $(seq 1 $nslookup_attempts); do
|
||||||
if nslookup -timeout=$nslookup_timeout openwrt.org > /dev/null 2>&1; then
|
if nslookup -timeout=$nslookup_timeout openwrt.org > /dev/null 2>&1; then
|
||||||
echolog "✅ DNS check passed"
|
echolog "✅ DNS check passed"
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user