summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorOskari Rauta <oskari.rauta@gmail.com>2016-04-01 04:15:11 +0000
committerOskari Rauta <oskari.rauta@gmail.com>2016-04-01 04:15:11 +0000
commit57e58b9bf9e9bbf4eeed0daf0515280376d7e611 (patch)
treebeb1b29d95c8d31ed0a0b61a3b3170bd7b621c8a /libs
parent75b462fe469be1d7434f65af7b6aab9e1a7da6c2 (diff)
Update network.lua
Fix display of WAN status when WAN is provided by using WWAN device or similar with other similar similar methods. Explanation: Before this, protocol was fetched from /etc/config/network for interface which often is wan_4 - but protocol is configured in file as wan, and therefore protocol is always none, since configuration is made for wan and then setup as wan_4 and possibly wan_6 if ipv6 is being used. This commit uses ubus to get used active protocol. For example, in case of qmi, it displays protocol as dhcp since even if I configured wan to use qmi, dhcp was used as a protocol for getting IP address.
Diffstat (limited to 'libs')
0 files changed, 0 insertions, 0 deletions