summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-12-13 12:14:37 +0100
committerJo-Philipp Wich <jo@mein.io>2018-12-13 12:14:37 +0100
commitefb4d7c40a058d7191bc8ac0074aeccb7774365b (patch)
tree7849697dec306e1600ca0c99fad7809449d5b3d3 /modules
parent11b271d4a9e2d4efcc42c4d65b778b3c3c37ea72 (diff)
luci-base: fix table compare upon writing ipaddr changes
Fixes: b33192a03 ("luci-base: support cidr list notation for option ipaddr and ip6addr") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules')
-rw-r--r--modules/luci-base/luasrc/model/cbi/admin_network/proto_static.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/model/cbi/admin_network/proto_static.lua b/modules/luci-base/luasrc/model/cbi/admin_network/proto_static.lua
index 3c5751744..246d2c0ed 100644
--- a/modules/luci-base/luasrc/model/cbi/admin_network/proto_static.lua
+++ b/modules/luci-base/luasrc/model/cbi/admin_network/proto_static.lua
@@ -34,7 +34,7 @@ usecidr.write = function(self, section)
local formvalue = (self:formvalue(section) == "1") and ipaddr_multi:formvalue(section) or ipaddr_single:formvalue(section)
local equal = (cfgvalue == formvalue)
- if not equal and type(cfgvalue) == "table" and type(formvalue) == "table" then
+ if not equal and type(cfgvalue) == "table" and type(formvalue) == "table" and #cfgvalue == #formvalue then
equal = true
local _, v