luci-app-ddns: fix huge typo in luasrc/tools/ddns.lua
This cherry-picks commit d81c8d0e6b
Signed-off-by: David Yang <mmyangfl@gmail.com>
Signed-off-by: Chuck <fanck0605@qq.com>
This commit is contained in:
parent
f5f1ea3316
commit
d4424f8847
1 changed files with 34 additions and 35 deletions
|
@ -92,7 +92,6 @@ function env_info(type)
|
|||
|
||||
elseif ( type == "has_dnsserver" ) or ( type == "has_bindhost" ) or ( type == "has_hostip" ) or ( type == "has_nslookup" ) then
|
||||
local function has_bindhost()
|
||||
if (SYS.call( [[which host >/dev/null 2>&1]] ) == 0) then return true end
|
||||
if (SYS.call( [[which host >/dev/null 2>&1]] ) == 0) then return true end
|
||||
if (SYS.call( [[which khost >/dev/null 2>&1]] ) == 0) then return true end
|
||||
if (SYS.call( [[which drill >/dev/null 2>&1]] ) == 0) then return true end
|
||||
|
@ -113,7 +112,7 @@ function env_info(type)
|
|||
return has_hostip()
|
||||
elseif type == "has_nslookup" then
|
||||
return has_nslookup()
|
||||
elseif tyep == "has_dnsserver" then
|
||||
elseif type == "has_dnsserver" then
|
||||
if has_bindhost() then return true end
|
||||
if has_hostip() then return true end
|
||||
if has_nslookup() then return true end
|
||||
|
|
Loading…
Reference in a new issue