From efb4d7c40a058d7191bc8ac0074aeccb7774365b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 13 Dec 2018 12:14:37 +0100 Subject: [PATCH] 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 --- .../luci-base/luasrc/model/cbi/admin_network/proto_static.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3c5751744a..246d2c0ed5 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 -- 2.30.2