mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add automatic speedtest in wizard
This commit is contained in:
parent
da603e9310
commit
2d3b37888d
3 changed files with 62 additions and 5 deletions
|
@ -272,7 +272,7 @@
|
|||
local method=uci:get("openmptcprouter","settings","encryption")
|
||||
if method == nil and ut.trim(sys.exec("cat /proc/cpuinfo | grep aes")) ~= "" then
|
||||
method="aes-256-gcm"
|
||||
else
|
||||
elseif method == nil then
|
||||
method="chacha20"
|
||||
end
|
||||
%>
|
||||
|
@ -993,12 +993,22 @@
|
|||
end
|
||||
%>
|
||||
<div class="cbi-value" data-index="19">
|
||||
<label class="cbi-value-title"><%:Calculate speed%></label>
|
||||
<div class="cbi-value-field">
|
||||
<input class="cbi-input-checkbox" type="checkbox" name="cbid.sqm.<%=ifname%>.testspeed" value="1" <% if uci:get("openmptcprouter",ifname,"testspeed") == "1" or uci:get("openmptcprouter",ifname,"testspeed") == nil then %>checked<% end %> />
|
||||
<br />
|
||||
<div class="cbi-value-description">
|
||||
<%:Run an automatic speedtest to calculate max speed.%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cbi-value" data-index="20">
|
||||
<label class="cbi-value-title"><%:Download speed (Kb/s)%></label>
|
||||
<div class="cbi-value-field">
|
||||
<input type="text" name="cbid.sqm.<%=ifname%>.download" class="cbi-input-text" value="<%=download%>" data-type="uinteger">
|
||||
<br />
|
||||
<div class="cbi-value-description">
|
||||
<%:Used by Glorytun UDP and SQM/QoS if enabled. 0 to use default value.%>
|
||||
<%:Used by Glorytun UDP and SQM/QoS if enabled.%>
|
||||
</div>
|
||||
<!--
|
||||
<br />
|
||||
|
@ -1008,13 +1018,13 @@
|
|||
-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="cbi-value" data-index="20">
|
||||
<div class="cbi-value" data-index="21">
|
||||
<label class="cbi-value-title"><%:Upload speed (Kb/s)%></label>
|
||||
<div class="cbi-value-field">
|
||||
<input type="text" name="cbid.sqm.<%=ifname%>.upload" class="cbi-input-text" value="<%=upload%>" data-type="uinteger">
|
||||
<br />
|
||||
<div class="cbi-value-description">
|
||||
<%:Used by Glorytun UDP and SQM/QoS if enabled. 0 to use default value.%>
|
||||
<%:Used by Glorytun UDP and SQM/QoS if enabled.%>
|
||||
</div>
|
||||
<!--
|
||||
<br />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue