Advanced: Device List: fix issue #129 (Static DHCP devices without IPs assigned are shown with WAN IP on Device List page)

- thanks to @edrikk
arm-sdk7
pedro 4 years ago
parent 62c56c9ef5
commit fd8771826c

@ -345,7 +345,7 @@ dg.populate = function() {
/* special case for gateway */
for (l = 1; l <= MAX_PORT_ID; l++) {
k = (l == 1) ? '' : l.toString();
if (nvram['wan'+k+'_gateway'] != '' && nvram['wan'+k+'_gateway'] != '0.0.0.0' && (e = find(c[j], null)) != null) {
if (nvram['wan'+k+'_gateway'] != '' && nvram['wan'+k+'_gateway'] != '0.0.0.0' && (e = find(c[j], null)) != null && (a[1] != lipp)) {
e.ip = nvram['wan'+k+'_gateway'];
break loop1;
}

Loading…
Cancel
Save