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

Add latest version in interface and dynamic master option

This commit is contained in:
Ycarus 2018-10-31 12:39:40 +01:00
parent 8ab281e9df
commit 1dbe57436b
3 changed files with 22 additions and 8 deletions

View file

@ -25,6 +25,12 @@
<input type="checkbox" name="disable_ipv6" class="cbi-input-checkbox" value="1" <% if tonumber((luci.sys.exec("sysctl net.ipv6.conf.all.disable_ipv6")):match(" %d+")) == 1 then %>checked<% end %>>
</div>
</div>
<div class="cbi-value">
<label class="cbi-value-title"><%:Dynamic master interface%></label>
<div class="cbi-value-field">
<input type="checkbox" name="master_type" class="cbi-input-checkbox" value="dynamic" <% if luci.model.uci.cursor():get("openmptcprouter","settings","master") == "dynamic" then %>checked<% end %>>
</div>
</div>
<div class="cbi-value">
<label class="cbi-value-title"><%:Enable ShadowSocks OBFS%></label>
<div class="cbi-value-field">

View file

@ -73,7 +73,11 @@
if (mArray.openmptcprouter.version)
{
content += "Version " + mArray.openmptcprouter.version;
content += "Version " + mArray.openmptcprouter.version.replace(/\"/g,'');
if (mArray.openmptcprouter.latest_version_omr)
{
content += "<br><i>(Latest available version " + mArray.openmptcprouter.latest_version_omr + ")</i>";
}
content += "<br />";
}
if (mArray.openmptcprouter.loadavg)