modules/admin-full: allow to specify the DHCP pool start as IPv4 address (#420)
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 5 Jun 2012 14:05:03 +0000 (14:05 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 5 Jun 2012 14:05:03 +0000 (14:05 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua

index 4b58110..1d83eb3 100644 (file)
@@ -488,7 +488,7 @@ if has_dnsmasq and net:proto() == "static" then
                local start = s:taboption("general", Value, "start", translate("Start"),
                        translate("Lowest leased address as offset from the network address."))
                start.optional = true
-               start.datatype = "uinteger"
+               start.datatype = "or(uinteger,ip4addr)"
                start.default = "100"
 
                local limit = s:taboption("general", Value, "limit", translate("Limit"),