Changeset 2286


Ignore:
Timestamp:
Mar 15, 2013, 9:57:41 AM (6 years ago)
Author:
matthijs
Message:

luci: Don't use "wan_mask" variable to store the gateway.

This was probably a copy-paste error at some point.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/luci/modules/admin-fon/luasrc/view/fon/admin_fon_summary.htm

    r2225 r2286  
    1212end
    1313local wan_ip = "N/A"
    14 local wan_mask = "N/A"
     14local wan_gateway = "N/A"
    1515local net = require("luci.fon.net.wan")
    1616local wan_dns = "N/A"
     
    2424        wan_ip = uci:get("fon", "wan", "ipaddr")
    2525        wan_dns = uci:get("fon", "wan", "dns")
    26         wan_mask = uci:get("fon", "wan", "gateway")
     26        wan_gateway = uci:get("fon", "wan", "gateway")
    2727end
    2828local rc = uci:get("system", "fon", "rc")
     
    3232        if netdata[wan] then
    3333                wan_ip = netdata[wan]["inet addr"] or "N/A"
    34                 wan_mask = uci:get("network", "wan", "gateway") or "N/A"
    35                 if wan_mask and #wan_mask == 0 then
    36                         wan_mask = "N/A"
     34                wan_gateway = uci:get("network", "wan", "gateway") or "N/A"
     35                if wan_gateway and #wan_gateway == 0 then
     36                        wan_gateway = "N/A"
    3737                end
    3838                if wan_ip ~= "N/A" then
     
    8585                                        </li>
    8686                                        <li><%:summary_ipaddr IP Address%>: <%=wan_ip%></li>
    87                                         <li><%:summary_gateway Gateway address%>: <%=wan_mask%></li>
     87                                        <li><%:summary_gateway Gateway address%>: <%=wan_gateway%></li>
    8888                                        <li><%:summary_dns DNS Server%>: <%=wan_dns%></li>
    8989                                        <%-if wan_essid then -%><li><%:wan_ssid ESSID%>: <%=wan_essid%></li><%-end-%>
Note: See TracChangeset for help on using the changeset viewer.