mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 10:51:51 +00:00
* Fixed DHCP configuration for devices without WAN interface
* Made interface selector for route configuration a ListValue
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -7,7 +7,12 @@ s = m:section(TypedSection, "route")
|
||||
s.addremove = true
|
||||
s.anonymous = true
|
||||
|
||||
s:option(Value, "interface", "Schnittstelle")
|
||||
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)
|
||||
end
|
||||
end
|
||||
|
||||
s:option(Value, "target", "Ziel", "Host-IP oder Netzwerk")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user