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>
Tue, 15 Dec 2015 18:10:15 +0000 (13:10 -0500)
commit38880407aa6c0246bc9af52073a79ff4a2096a6e
tree340fa7fe332077526fdd8fdc487330394c3d9e24
parentd83642c20519692c5d3883e23d01bb84a48dd85a
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