mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add shadowsocks v2ray plugin from source
This commit is contained in:
parent
0fdab6005b
commit
4b31a55a95
16 changed files with 1288 additions and 66 deletions
|
@ -57,6 +57,11 @@
|
|||
<%
|
||||
end)
|
||||
%>
|
||||
<%
|
||||
local obfs_installed = nixio.fs.access("/usr/bin/obfs-local")
|
||||
local v2ray_installed = nixio.fs.access("/usr/bin/obfs-local")
|
||||
if obfs_installed or v2ray_installed then
|
||||
%>
|
||||
<div class="cbi-value">
|
||||
<label class="cbi-value-title"><%:Enable ShadowSocks Obfuscating%></label>
|
||||
<div class="cbi-value-field">
|
||||
|
@ -71,11 +76,24 @@
|
|||
<label class="cbi-value-title"><%:Obfuscating plugin%></label>
|
||||
<div class="cbi-value-field">
|
||||
<select class="cbi-input-select" name="obfs_plugin">
|
||||
<%
|
||||
if v2ray_installed then
|
||||
%>
|
||||
<option value="v2ray" <% if luci.model.uci.cursor():get("shadowsocks-libev","tracker","obfs_plugin") == "v2ray" then %>selected="selected"<% end %>>v2ray</option>
|
||||
<%
|
||||
end
|
||||
if obfs_installed then
|
||||
%>
|
||||
<option value="obfs" <% if luci.model.uci.cursor():get("shadowsocks-libev","tracker","obfs_plugin") == "obfs" then %>selected="selected"<% end %>>simple-obfs</option>
|
||||
<%
|
||||
end
|
||||
%>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<%
|
||||
end
|
||||
%>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="cbi-section" id="networks">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue