git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
6efd34e
)
modules/admin-full: allow special value "ignore" for static lease ip address (#558)
author
Jo-Philipp Wich
<redacted>
Wed, 20 Mar 2013 15:25:38 +0000
(15:25 +0000)
committer
Jo-Philipp Wich
<redacted>
Wed, 20 Mar 2013 15:25:38 +0000
(15:25 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
patch
|
blob
|
history
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 98f9d8ecf9f3c20248038eeef87f6cc209370025..7b5a42c22a7d4629f41771dd3dbbc6f4434be62c 100644
(file)
--- 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"])
git clone https://git.99rst.org/PROJECT