mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix QoS in wizard
This commit is contained in:
parent
3419876fd5
commit
bc14122b3e
1 changed files with 5 additions and 1 deletions
|
@ -283,6 +283,7 @@ function wizard_add()
|
||||||
local auth = luci.http.formvalue("cbid.network.%s.auth" % intf) or ""
|
local auth = luci.http.formvalue("cbid.network.%s.auth" % intf) or ""
|
||||||
local mode = luci.http.formvalue("cbid.network.%s.mode" % intf) or ""
|
local mode = luci.http.formvalue("cbid.network.%s.mode" % intf) or ""
|
||||||
local sqmenabled = luci.http.formvalue("cbid.sqm.%s.enabled" % intf) or "0"
|
local sqmenabled = luci.http.formvalue("cbid.sqm.%s.enabled" % intf) or "0"
|
||||||
|
local qosenabled = luci.http.formvalue("cbid.qos.%s.enabled" % intf) or "0"
|
||||||
local multipath = luci.http.formvalue("cbid.network.%s.multipath" % intf) or "on"
|
local multipath = luci.http.formvalue("cbid.network.%s.multipath" % intf) or "on"
|
||||||
local lan = luci.http.formvalue("cbid.network.%s.lan" % intf) or "0"
|
local lan = luci.http.formvalue("cbid.network.%s.lan" % intf) or "0"
|
||||||
local ttl = luci.http.formvalue("cbid.network.%s.ttl" % intf) or ""
|
local ttl = luci.http.formvalue("cbid.network.%s.ttl" % intf) or ""
|
||||||
|
@ -463,9 +464,12 @@ function wizard_add()
|
||||||
--ucic:set("sqm",intf,"iqdisc_opts","autorate-ingress dual-dsthost")
|
--ucic:set("sqm",intf,"iqdisc_opts","autorate-ingress dual-dsthost")
|
||||||
--ucic:set("sqm",intf,"eqdisc_opts","dual-srchost")
|
--ucic:set("sqm",intf,"eqdisc_opts","dual-srchost")
|
||||||
ucic:set("sqm",intf,"enabled","1")
|
ucic:set("sqm",intf,"enabled","1")
|
||||||
ucic:set("qos",intf,"enabled","1")
|
|
||||||
else
|
else
|
||||||
ucic:set("sqm",intf,"enabled","0")
|
ucic:set("sqm",intf,"enabled","0")
|
||||||
|
end
|
||||||
|
if qosenabled == "1" then
|
||||||
|
ucic:set("qos",intf,"enabled","1")
|
||||||
|
else
|
||||||
ucic:set("qos",intf,"enabled","0")
|
ucic:set("qos",intf,"enabled","0")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue