diff options
Diffstat (limited to 'modules/luci-mod-network/htdocs/luci-static')
-rw-r--r-- | modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js index d8083a1e0e..cb1aa99472 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js @@ -98,9 +98,9 @@ function getDHCPPools() { continue; tasks.push(network.getNetwork(sections[i].interface).then(L.bind(function(section_id, net) { - var cidr = (net.getIPAddrs()[0] || '').split('/'); + var cidr = net ? (net.getIPAddrs()[0] || '').split('/') : null; - if (cidr.length == 2) { + if (cidr && cidr.length == 2) { var net_mask = calculateNetwork(cidr[0], cidr[1]); pools.push({ |