diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-11-14 20:59:26 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-11-14 20:59:26 +0100 |
commit | f1efd71ba0ebd9327765f54e2ccee51fcd631e05 (patch) | |
tree | c8116a81d66696946eca58cc282b3af2057a1a65 /modules/luci-mod-network/luasrc/model | |
parent | 7e26fa89e9d0109b42c84e2674bbcbae530aa356 (diff) |
luci-mod-network: require unique MACs for DHCP leases
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network/luasrc/model')
-rw-r--r-- | modules/luci-mod-network/luasrc/model/cbi/admin_network/dhcp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-network/luasrc/model/cbi/admin_network/dhcp.lua b/modules/luci-mod-network/luasrc/model/cbi/admin_network/dhcp.lua index e886d8422..0be1b3fb5 100644 --- a/modules/luci-mod-network/luasrc/model/cbi/admin_network/dhcp.lua +++ b/modules/luci-mod-network/luasrc/model/cbi/admin_network/dhcp.lua @@ -295,7 +295,7 @@ function name.remove(self, section) end mac = s:option(Value, "mac", translate("<abbr title=\"Media Access Control\">MAC</abbr>-Address")) -mac.datatype = "list(macaddr)" +mac.datatype = "list(unique(macaddr))" mac.rmempty = true function mac.cfgvalue(self, section) |