diff options
Diffstat (limited to '')
-rwxr-xr-x | mirror-checker.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mirror-checker.lua b/mirror-checker.lua index ff8691e..e47f312 100755 --- a/mirror-checker.lua +++ b/mirror-checker.lua | |||
@@ -148,7 +148,7 @@ local IP = {} | |||
148 | local gatherIPs = function (host) | 148 | local gatherIPs = function (host) |
149 | if nil == IP[host] then | 149 | if nil == IP[host] then |
150 | local IPs | 150 | local IPs |
151 | local dig = io.popen('dig +keepopen +noall +nottlid +answer ' .. host .. ' A ' .. host .. ' AAAA ' .. host .. ' CNAME ' .. host .. ' SRV | sort | uniq') | 151 | local dig = io.popen('dig +keepopen +noall +nottlid +answer ' .. host .. ' A ' .. host .. ' AAAA ' .. host .. ' CNAME ' .. host .. ' SRV | sort -r | uniq') |
152 | repeat | 152 | repeat |
153 | IPs = dig:read("*l") | 153 | IPs = dig:read("*l") |
154 | if nil ~= IPs then | 154 | if nil ~= IPs then |