diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-03-20 15:25:38 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-03-20 15:25:38 +0000 |
commit | 21aba9c483dab8ae4a261218a75bc632fc8143e7 (patch) | |
tree | 10339437e22103adedb9d95a2138b6a592e50231 | |
parent | 6efd34e9ecfdc8acbaa09bfb414722fc9790844f (diff) |
modules/admin-full: allow special value "ignore" for static lease ip address (#558)
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua b/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua index 98f9d8ecf9..7b5a42c22a 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua @@ -239,7 +239,7 @@ mac.datatype = "list(macaddr)" mac.rmempty = true ip = s:option(Value, "ip", translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Address")) -ip.datatype = "ip4addr" +ip.datatype = "or(ip4addr,'ignore')" sys.net.arptable(function(entry) ip:value(entry["IP address"]) |