diff options
author | Ted Trask <ttrask01@yahoo.com> | 2016-04-27 20:01:01 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2016-04-27 20:01:01 +0000 |
commit | 972e0cb3ab2b3417a77448063a06ea13f5a637f6 (patch) | |
tree | c49b529c7fe6077f9ca5c076ee4ac6300fbdd2ed /openssh-model.lua | |
parent | 6a5047ca56ea6cc628ccd0ed496a628eae717aa9 (diff) | |
download | acf-openssh-972e0cb3ab2b3417a77448063a06ea13f5a637f6.tar.bz2 acf-openssh-972e0cb3ab2b3417a77448063a06ea13f5a637f6.tar.xz |
Change UseDNS default to false to match openssh 6.8 default
Diffstat (limited to 'openssh-model.lua')
-rw-r--r-- | openssh-model.lua | 4 |
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" }) |