Merge pull request #2427 from leonghui/fix_has_curlssl_typo
[project/luci.git] / applications / luci-app-ddns / luasrc / tools / ddns.lua
index fb8d0d207e833ff7468f78368149ffd49cc7175a..be7f3eeff4fb699730bfdc9f2efbae800d39c356 100755 (executable)
@@ -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