summaryrefslogtreecommitdiffstats
path: root/openntpd-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'openntpd-model.lua')
-rw-r--r--openntpd-model.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/openntpd-model.lua b/openntpd-model.lua
index 097eba2..746db69 100644
--- a/openntpd-model.lua
+++ b/openntpd-model.lua
@@ -75,10 +75,10 @@ end
function read_config ()
local config = {}
- config.server = cfe({ type="list", value={}, label="Single servers", descr="List of server IP addresses/hostnames. OpenNTPD will attempt to synchronize to one resolved address for each hostname entry." })
- config.servers = cfe({ type="list", value={}, label="Multiple servers", descr="List of server IP addresses/hostnames. OpenNTPD will attempt to synchronize to all resolved addresses for each hostname entry." })
- config.listen = cfe({ type="list", value={}, label="Addresses to listen on", descr="List of IP addresses/hostnames to listen on. '*' means listen on all local addresses." })
- config.setstimeonstartup = cfe({ type="boolean", value=false, label="Set time on startup" })
+ config.server = cfe({ type="list", value={}, label="Single servers", descr="List of server IP addresses/hostnames. OpenNTPD will attempt to synchronize to one resolved address for each hostname entry.", seq=3 })
+ config.servers = cfe({ type="list", value={}, label="Multiple servers", descr="List of server IP addresses/hostnames. OpenNTPD will attempt to synchronize to all resolved addresses for each hostname entry.", seq=4 })
+ config.listen = cfe({ type="list", value={}, label="Addresses to listen on", descr="List of IP addresses/hostnames to listen on. '*' means listen on all local addresses.", seq=2 })
+ config.setstimeonstartup = cfe({ type="boolean", value=false, label="Set time on startup", seq=1 })
local conf = format.parse_linesandwords(fs.read_file(configfile) or "")
for i,line in ipairs(conf) do