* Fixed DHCP configuration for devices without WAN interface
* Made interface selector for route configuration a ListValue
This commit is contained in:
parent
1c88249082
commit
b2f9325073
2 changed files with 7 additions and 1 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue