mirror of
https://github.com/itdoginfo/podkop.git
synced 2026-01-28 21:30:41 +03:00
Merge pull request #307 from itdoginfo/fix/dns-check
fix: use nslookup_attempts for DNS check loop
This commit is contained in:
@@ -490,7 +490,7 @@ list_update() {
|
||||
local i
|
||||
|
||||
# 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
|
||||
echolog "✅ DNS check passed"
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user