Merge pull request #2384 from davidjb/patch-1
luci-app-ddns: check existence of nslookup util rather than making DNS request
This commit is contained in:
commit
a6805ed9fb
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ function env_info(type)
|
|||
end
|
||||
|
||||
local function has_nslookup()
|
||||
return (SYS.call( [[$(which nslookup) localhost 2>&1 | grep -qF "(null)"]] ) ~= 0)
|
||||
return (SYS.call( [[which nslookup >/dev/null 2>&1]] ) == 0)
|
||||
end
|
||||
|
||||
if type == "has_bindhost" then
|
||||
|
|
Loading…
Reference in a new issue