Commit 312d85cd authored by Ted Trask's avatar Ted Trask

dhcp-option validation updated to allow spaces

parent 8fcf325a
......@@ -174,7 +174,7 @@ local function validateconfig(self, config)
testlist(config.value.dhcp_range, function(v) return string.find(v, "%s") end, "Cannot contain spaces")
testlist(config.value.no_dhcp_interface, function(v) return not interfaces[v] end, "Invalid interface")
testlist(config.value.dhcp_host, function(v) return string.find(v, "%s") end, "Cannot contain spaces")
testlist(config.value.dhcp_option, function(v) return string.find(v, "%s") end, "Cannot contain spaces")
--testlist(config.value.dhcp_option, function(v) return string.find(v, "%s") end, "Cannot contain spaces")
testlist(config.value.mx_host, function(v) return string.find(v, "%s") end, "Cannot contain spaces")
if config.value.dns_filtering.value then
-- validate ip address only if dns filtering is enabled
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment