projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-base: do not assume a fixed host address in delegated prefix (#1484)
[project/luci.git]
/
modules
/
luci-base
/
luasrc
/
model
/
network.lua
diff --git
a/modules/luci-base/luasrc/model/network.lua
b/modules/luci-base/luasrc/model/network.lua
index
6f405a1
..
9ea8e36
100644
(file)
--- a/
modules/luci-base/luasrc/model/network.lua
+++ b/
modules/luci-base/luasrc/model/network.lua
@@
-998,7
+998,12
@@
function protocol.ip6addrs(self)
if type(addrs) == "table" then
for n, addr in ipairs(addrs) do
if type(addrs) == "table" then
for n, addr in ipairs(addrs) do
- rv[#rv+1] = "%s1/%d" %{ addr.address, addr.mask }
+ if type(addr["local-address"]) == "table" then
+ rv[#rv+1] = "%s/%d" %{
+ addr["local-address"].address,
+ addr["local-address"].mask
+ }
+ end
end
end
end
end