From: Jo-Philipp Wich Date: Thu, 13 Dec 2018 11:14:37 +0000 (+0100) Subject: luci-base: fix table compare upon writing ipaddr changes X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=efb4d7c40a058d7191bc8ac0074aeccb7774365b;p=project%2Fluci.git 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 --- 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