diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-06-26 22:19:30 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-06-26 22:19:30 +0000 |
commit | a99f570bf44774e10f68c43e284e06f42ba90815 (patch) | |
tree | 2837de2f85fc04d57c5afb9672c0eb17a437ab71 /modules/admin-full/luasrc | |
parent | 0f3175ad42baa9c80606026d6a203cf9444b647b (diff) |
modules/admin-full: use get_wannet() and get_wan6net() to find wan networks on status page
Diffstat (limited to 'modules/admin-full/luasrc')
-rw-r--r-- | modules/admin-full/luasrc/view/admin_status/index.htm | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/modules/admin-full/luasrc/view/admin_status/index.htm b/modules/admin-full/luasrc/view/admin_status/index.htm index fb9a085957..1ef90ad8fb 100644 --- a/modules/admin-full/luasrc/view/admin_status/index.htm +++ b/modules/admin-full/luasrc/view/admin_status/index.htm @@ -24,19 +24,8 @@ $Id$ if luci.http.formvalue("status") == "1" then local ntm = require "luci.model.network".init() - local dr4 = luci.sys.net.defaultroute() - local dr6 = luci.sys.net.defaultroute6() - local wan, wan6 - - if dr4 and dr4.device then - wan = ntm:get_interface(dr4.device) - wan = wan and wan:get_network() - end - - if dr6 and dr6.device then - wan6 = ntm:get_interface(dr6.device) - wan6 = wan6 and wan6:get_network() - end + local wan = ntm:get_wannet() + local wan6 = ntm:get_wan6net() local _, _, memtotal, memcached, membuffers, memfree = luci.sys.sysinfo() |