mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 18:41:51 +00:00
Fix multipath status in wizard when MPTCP over VPN is used
This commit is contained in:
parent
94cfe01b7c
commit
0a3bd469f2
1 changed files with 18 additions and 0 deletions
|
@ -691,6 +691,21 @@ end
|
|||
<input type="text" id="cbid.network.<%=ifname%>.delay" name="cbid.network.<%=ifname%>.delay" class="cbi-input-text" value="<%=uci:get("network",ifname,"delay")%>">
|
||||
</div>
|
||||
</div>
|
||||
<%
|
||||
if uci:get("openmptcprouter",ifname,"multipathvpn") == "1" then
|
||||
%>
|
||||
<div class="cbi-value" id="cbi-network-<%=ifname%>-multipath" data-index="13">
|
||||
<label class="cbi-value-title"><%:Multipath TCP%></label>
|
||||
<div class="cbi-value-field">
|
||||
<select class="cbi-input-select" data-update="change" id="cbid.network.<%=ifname%>.multipath" name="cbid.network.<%=ifname%>.multipath" size="1">
|
||||
<option value="on"<% if uci:get("network","ovpn" .. ifname,"multipath") == "on" then %> selected="selected"<% end %>><%:Enabled%></option>
|
||||
<option value="off"<% if uci:get("network","ovpn" .. ifname,"multipath") == "off" then %> selected="selected"<% end %>><%:Disabled%></option>
|
||||
<option value="master"<% if uci:get("network","ovpn" .. ifname,"multipath") == "master" then %> selected="selected"<% end %>><%:Master%></option>
|
||||
<option value="backup"<% if uci:get("network","ovpn" .. ifname,"multipath") == "backup" then %> selected="selected"<% end %>><%:Backup%></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="cbi-value" id="cbi-network-<%=ifname%>-multipath" data-index="13">
|
||||
<label class="cbi-value-title"><%:Multipath TCP%></label>
|
||||
<div class="cbi-value-field">
|
||||
|
@ -702,6 +717,9 @@ end
|
|||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<%
|
||||
end
|
||||
%>
|
||||
|
||||
<%
|
||||
local download = "0"
|
||||
|
|
Loading…
Reference in a new issue