* Fixed DHCP configuration for devices without WAN interface
[project/luci.git] / module / admin-core / src / model / cbi / admin_network / dhcp.lua
index 766d87d..c8f1007 100644 (file)
@@ -13,6 +13,7 @@ iface = s:option(ListValue, "interface", "Schnittstelle")
 for k, v in pairs(ffluci.model.uci.show("network").network) do
        if v[".type"] == "interface" and k ~= "loopback" then
                iface:value(k)
+               s:depends("interface", k) -- Only change sections with existing interfaces
        end
 end