Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
webui: If we don't know a wifi client's IP, report it as unknown inst…
Browse files Browse the repository at this point in the history
…ead of leaving the field blank
  • Loading branch information
RMerl committed Sep 20, 2016
1 parent 71dd92e commit e185d2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion release/src/router/httpd/sysdeps/web-broadcom.c
Expand Up @@ -4758,7 +4758,7 @@ ej_wl_status_array(int eid, webs_t wp, int argc, char_t **argv, int unit)
}

if (found || !leaselist) {
ret += websWrite(wp, "\"%s\",", (found ? ipentry : ""));
ret += websWrite(wp, "\"%s\",", (found ? ipentry : "<unknown>"));
}
} else {
ret += websWrite(wp, "\"<unknown>\",");
Expand Down
2 changes: 1 addition & 1 deletion release/src/router/www/Main_WStatus_Content.asp
Expand Up @@ -109,7 +109,7 @@ function display_clients(clientsarray, obj) {
code +='<br><span style="margin-top:-15px; color: cyan;">'+ htmlEnDeCode.htmlEncode(client[2]) +'</span></td>';
}
code += '<td style="vertical-align: top;">' + client[1]; // IPv4
code += '<td style="vertical-align: top;">' + htmlEnDeCode.htmlEncode(client[1]); // IPv4
code += '<br><span style="margin-top:-15px; color: cyan;">'+ client[3] +'</span></td>'; // IPv6
Expand Down

0 comments on commit e185d2f

Please sign in to comment.