summaryrefslogtreecommitdiffstats
path: root/openssh-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'openssh-model.lua')
-rw-r--r--openssh-model.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/openssh-model.lua b/openssh-model.lua
index d672960..17b45be 100644
--- a/openssh-model.lua
+++ b/openssh-model.lua
@@ -72,7 +72,7 @@ function mymodule.read_config()
output.ListenAddress = cfe({ value="0.0.0.0", label="Listen address", seq=2 })
output.PermitRootLogin = cfe({ type="boolean", value=true, label="Permit Root Login", seq=3 })
output.PasswordAuthentication = cfe({ type="boolean", value=true, label="Password Authentication", seq=4 })
- output.UseDNS = cfe({ type="boolean", value=true, label="Use DNS", seq=5 })
+ output.UseDNS = cfe({ type="boolean", value=false, label="Use DNS", seq=5 })
local config = format.parse_configfile(fs.read_file(configfile) or "")
if config then
@@ -80,7 +80,7 @@ function mymodule.read_config()
output.ListenAddress.value = config.ListenAddress or output.ListenAddress.value
output.PermitRootLogin.value = not (config.PermitRootLogin == "no")
output.PasswordAuthentication.value = not (config.PasswordAuthentication == "no")
- output.UseDNS.value = not (config.UseDNS == "no")
+ output.UseDNS.value = (config.UseDNS == "yes")
end
return cfe({ type="group", value=output, label="OpenSSH Config" })