mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix TTL display https://github.com/Ysurac/openmptcprouter/issues/3045
This commit is contained in:
parent
62676ca47d
commit
6920f7227f
2 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue