From 3c6d3ba2af9dd0484261f80b3a03146a079eca89 Mon Sep 17 00:00:00 2001 From: Ycarus Date: Thu, 6 Dec 2018 15:49:56 +0100 Subject: [PATCH] Display wan ip at top of wan status --- .../luasrc/view/openmptcprouter/wanstatus.htm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm b/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm index 287a18448..9c475ed6c 100644 --- a/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm +++ b/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm @@ -332,6 +332,10 @@ } //var content = String.format('%s
wan address: %s
whois: %s
latency: %s ms
multipath: %s', stat, wanip, whois, latency, multipath); var content = ""; + if(ipaddr != '') + { + content += String.format('ip address: %s
', ipaddr); + } if(wanip !== '') { content += String.format('wan address: %s
', wanip); @@ -380,10 +384,6 @@ { statusMessage += 'IPv6 route received
' } - if(ipaddr != '') - { - content += String.format('ip address: %s
', ipaddr); - } content += String.format('multipath: %s
',multipath); if(mArray.wans[i].qos && mArray.wans[i].download > 0 && mArray.wans[i].upload > 0) {