summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2017-10-16 14:48:49 +0000
committerTed Trask <ttrask01@yahoo.com>2017-10-16 14:48:49 +0000
commit312d85cdcfeac4b499da41dbb1a9b57060de0a09 (patch)
tree7c77f7ef8768b943d6975af519ee1ca129ff6802
parent8fcf325ad39492c050b49da461bd87d20661930b (diff)
downloadacf-dnsmasq-312d85cdcfeac4b499da41dbb1a9b57060de0a09.tar.bz2
acf-dnsmasq-312d85cdcfeac4b499da41dbb1a9b57060de0a09.tar.xz
dhcp-option validation updated to allow spaces
-rw-r--r--dnsmasq-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/dnsmasq-model.lua b/dnsmasq-model.lua
index 47176ef..3e4e484 100644
--- a/dnsmasq-model.lua
+++ b/dnsmasq-model.lua
@@ -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