luci-base: do not assume a fixed host address in delegated prefix (#1484)
authorJo-Philipp Wich <jo@mein.io>
Fri, 16 Feb 2018 16:04:13 +0000 (17:04 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 16 Feb 2018 16:05:52 +0000 (17:05 +0100)
commit461df8b0dc1a9be5fb9e904d8cdc44c6d0cbd6c8
tree24470468fa752bb5e7d809f02abc0aa1f56a61e8
parentde4f1c9046cba0f2dc6d33e92d68d787eed00aa5
luci-base: do not assume a fixed host address in delegated prefix (#1484)

OpenWrt/LEDE introduced the "local-address" field a while back to expose the
effective local host address of the delegated prefix, so use that information
instead of assuming `[prefix]:1`.

Fixes #1484.

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