luci-base: properly option ipaddr in single cidr string notation as well
authorJo-Philipp Wich <jo@mein.io>
Thu, 13 Dec 2018 10:57:16 +0000 (11:57 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 13 Dec 2018 10:57:16 +0000 (11:57 +0100)
commit11b271d4a9e2d4efcc42c4d65b778b3c3c37ea72
tree000c1bb909c23a2cef4a411caa7ca257aa8b75bb
parent67c34c5f5f414f25a6aa3d4a92a9a78cce2c86c5
luci-base: properly option ipaddr in single cidr string notation as well

When an interface configuration specifies both "option ipaddr 1.2.3.4/24"
and "option netmask", then netifd will ignore the netmask in favor to the
prefix encoded in the cidr string.

Support this variant as well by treating a sole cidr string value as
singöe-item cidr list.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/model/cbi/admin_network/proto_static.lua