diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-11-14 20:50:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-14 20:50:03 +0100 |
commit | ceb342dc8de0235686bfceae7cd3948cb3c2f527 (patch) | |
tree | f8f68ad60960d8e8575d7fa8be4a69b1c77e34d5 /modules/luci-base/luasrc | |
parent | e442bfe0ae51bd381045221391831703aa8fa182 (diff) | |
parent | 5fd51f05a8f6bf7da7247c8c568080db625efa96 (diff) |
Merge pull request #2259 from pmelange/luci-app-olsr-new-json-lib
update luci-app-olsr to the new jsoninfo library
Diffstat (limited to 'modules/luci-base/luasrc')
-rw-r--r-- | modules/luci-base/luasrc/model/network.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/luci-base/luasrc/model/network.lua b/modules/luci-base/luasrc/model/network.lua index 7f7397032f..49e1657aae 100644 --- a/modules/luci-base/luasrc/model/network.lua +++ b/modules/luci-base/luasrc/model/network.lua @@ -855,6 +855,14 @@ function get_status_by_address(self, addr) end end end + if s and s['ipv6-prefix-assignment'] then + local a + for _, a in ipairs(s['ipv6-prefix-assignment']) do + if a and a['local-address'] and a['local-address'].address == addr then + return net, s + end + end + end end end end |