mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix #313
This commit is contained in:
parent
ef535bc21f
commit
90e2ddf33f
1 changed files with 2 additions and 2 deletions
|
@ -179,7 +179,7 @@ function wizard_add()
|
||||||
local downloadspeed = luci.http.formvalue("cbid.sqm.%s.download" % intf) or "0"
|
local downloadspeed = luci.http.formvalue("cbid.sqm.%s.download" % intf) or "0"
|
||||||
local uploadspeed = luci.http.formvalue("cbid.sqm.%s.upload" % intf) or "0"
|
local uploadspeed = luci.http.formvalue("cbid.sqm.%s.upload" % intf) or "0"
|
||||||
|
|
||||||
if ucic:get("qos",intf) == "" then
|
if not ucic:get("qos",intf) ~= "" then
|
||||||
ucic:set("qos",intf,"interface")
|
ucic:set("qos",intf,"interface")
|
||||||
ucic:set("qos",intf,"classgroup","Default")
|
ucic:set("qos",intf,"classgroup","Default")
|
||||||
ucic:set("qos",intf,"enabled","0")
|
ucic:set("qos",intf,"enabled","0")
|
||||||
|
@ -187,7 +187,7 @@ function wizard_add()
|
||||||
ucic:set("qos",intf,"download","100000")
|
ucic:set("qos",intf,"download","100000")
|
||||||
end
|
end
|
||||||
|
|
||||||
if ucic:get("sqm",intf) == "" then
|
if not ucic:get("sqm",intf) ~= "" then
|
||||||
local defif = ucic:get("network",intf .. "_dev","ifname") or ""
|
local defif = ucic:get("network",intf .. "_dev","ifname") or ""
|
||||||
if defif == "" then
|
if defif == "" then
|
||||||
defif = ucic:get("network",intf,"ifname") or ""
|
defif = ucic:get("network",intf,"ifname") or ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue