1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00
This commit is contained in:
Ycarus (Yannick Chabanois) 2023-11-27 16:35:32 +01:00
parent 62676ca47d
commit 6920f7227f
2 changed files with 2 additions and 0 deletions

View file

@ -358,6 +358,7 @@ function wizard_add()
uci_device = uci_device_from_interface(intf)
if uci_device == "" then
uci_device = intf .. "_dev"
ucic:set("network",uci_device,"device")
end
ucic:set("network",uci_device,"ttl",ttl)

View file

@ -573,6 +573,7 @@
for _, iface in ipairs(net:get_networks()) do
local ifname = iface:name()
local firewall_wan = luci.util.trim(luci.sys.exec("uci -q get firewall.zone_wan.network | tr ' ' '\n' | grep \'^" .. ifname .. "$\'"))
local ttl = uci:get("network",ifname .. "_dev","ttl")
if firewall_wan ~= "" then
-- local multipath = uci:get("network",ifname,"multipath")