diff options
author | Dirk Brenken <dev@brenken.org> | 2019-01-05 18:01:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-05 18:01:22 +0100 |
commit | a6805ed9fb75aacf38fde853ace18154fa751140 (patch) | |
tree | 83039c9ef071df653f463ff5cf2d8e610f42e434 /applications/luci-app-ddns/luasrc/tools/ddns.lua | |
parent | 9781725bcb1bdc66e89c0c43a094eeb7e333319d (diff) | |
parent | cfe4ae16689fc842d043ce6beba1d4ebe3e5e7b3 (diff) |
Merge pull request #2384 from davidjb/patch-1
luci-app-ddns: check existence of nslookup util rather than making DNS request
Diffstat (limited to 'applications/luci-app-ddns/luasrc/tools/ddns.lua')
-rwxr-xr-x | applications/luci-app-ddns/luasrc/tools/ddns.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-ddns/luasrc/tools/ddns.lua b/applications/luci-app-ddns/luasrc/tools/ddns.lua index 6f0c7f0952..2b92e3e636 100755 --- a/applications/luci-app-ddns/luasrc/tools/ddns.lua +++ b/applications/luci-app-ddns/luasrc/tools/ddns.lua @@ -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 |