modules/luci-base: Fix ipaddrport validator to support ipv6
authorDaniel Dickinson <openwrt@daniel.thecshore.com>
Mon, 14 Dec 2015 12:38:31 +0000 (07:38 -0500)
committerDaniel Dickinson <openwrt@daniel.thecshore.com>
Wed, 16 Dec 2015 01:40:14 +0000 (20:40 -0500)
commitbbcfad7953489ed87336e3a1981c9cb19e390cdb
tree9a319b276e604b17316d449de10046a2aa8b261a
parentf25c4e07bc9642e0491d3a4ab3942a69545891e9
modules/luci-base: Fix ipaddrport validator to support ipv6

The previous versiono of ipaddrport validator only worked for ipv4
due to disallowing colons (:) in ip address which obvious fails for
ipv6.  We now instead allow either ipv4 address or an ipv6 address of
the form [<ipv6address>]:port
modules/luci-base/htdocs/luci-static/resources/cbi.js
modules/luci-base/luasrc/cbi/datatypes.lua