1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Add multipath settings in openmptcprouter section

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-08-27 22:24:45 +02:00
parent d1446250e9
commit cb8147a7e5
5 changed files with 45 additions and 12 deletions

View file

@ -81,8 +81,10 @@ function add_interface(add_interface_ifname)
ucic:set("network","wan" .. i,"ip4table","wan")
if multipath_master then
ucic:set("network","wan" .. i,"multipath","on")
ucic:set("openmptcprouter","wan" .. i,"multipath","on")
else
ucic:set("network","wan" .. i,"multipath","master")
ucic:set("openmptcprouter","wan" .. i,"multipath","master")
end
ucic:set("network","wan" .. i,"defaultroute","0")
ucic:reorder("network","wan" .. i, i + 2)
@ -222,6 +224,8 @@ function set_interface(intf,proto,ipaddr,netmask,gateway,sqmenabled,downloadspee
ucic:commit("qos")
ucic:save("network")
ucic:commit("network")
ucic:save("openmptcprouter")
ucic:commit("openmptcprouter")
end
function default_vpn(default_vpn)