|
|
@@ -123,6 +123,7 @@ o:value("ss", translate("Shadowsocks New Version"))
|
|
|
end
|
|
|
if nixio.fs.access("/usr/bin/v2ray/v2ray") or nixio.fs.access("/usr/bin/v2ray") then
|
|
|
o:value("v2ray", translate("V2Ray"))
|
|
|
+o:value("vless", translate("VLESS"))
|
|
|
end
|
|
|
if nixio.fs.access("/usr/sbin/trojan") then
|
|
|
o:value("trojan", translate("Trojan"))
|
|
|
@@ -148,6 +149,7 @@ o.rmempty = false
|
|
|
o:depends("type", "ssr")
|
|
|
o:depends("type", "ss")
|
|
|
o:depends("type", "v2ray")
|
|
|
+o:depends("type", "vless")
|
|
|
o:depends("type", "trojan")
|
|
|
o:depends("type", "socks5")
|
|
|
|
|
|
@@ -157,6 +159,7 @@ o.rmempty = false
|
|
|
o:depends("type", "ssr")
|
|
|
o:depends("type", "ss")
|
|
|
o:depends("type", "v2ray")
|
|
|
+o:depends("type", "vless")
|
|
|
o:depends("type", "trojan")
|
|
|
o:depends("type", "socks5")
|
|
|
|
|
|
@@ -220,10 +223,17 @@ o.rmempty = true
|
|
|
o:depends("type", "v2ray")
|
|
|
|
|
|
-- VmessId
|
|
|
-o = s:option(Value, "vmess_id", translate("VmessId (UUID)"))
|
|
|
+o = s:option(Value, "vmess_id", translate("Vmess/VLESS ID (UUID)"))
|
|
|
o.rmempty = true
|
|
|
o.default = uuid
|
|
|
o:depends("type", "v2ray")
|
|
|
+o:depends("type", "vless")
|
|
|
+
|
|
|
+-- VLESS Encryption
|
|
|
+o = s:option(Value, "vless_encryption", translate("VLESS Encryption"))
|
|
|
+o.rmempty = true
|
|
|
+o.default = "none"
|
|
|
+o:depends("type", "vless")
|
|
|
|
|
|
-- 加密方式
|
|
|
o = s:option(ListValue, "security", translate("Encrypt Method"))
|
|
|
@@ -240,6 +250,7 @@ o:value("h2", "HTTP/2")
|
|
|
o:value("quic", "QUIC")
|
|
|
o.rmempty = true
|
|
|
o:depends("type", "v2ray")
|
|
|
+o:depends("type", "vless")
|
|
|
|
|
|
-- [[ TCP部分 ]]--
|
|
|
|
|
|
@@ -363,6 +374,7 @@ o.rmempty = true
|
|
|
o = s:option(Flag, "insecure", translate("allowInsecure"))
|
|
|
o.rmempty = false
|
|
|
o:depends("type", "v2ray")
|
|
|
+o:depends("type", "vless")
|
|
|
o:depends("type", "trojan")
|
|
|
o.default = "1"
|
|
|
o.description = translate("If true, allowss insecure connection at TLS client, e.g., TLS server uses unverifiable certificates.")
|
|
|
@@ -371,6 +383,7 @@ o = s:option(Flag, "tls", translate("TLS"))
|
|
|
o.rmempty = true
|
|
|
o.default = "0"
|
|
|
o:depends("type", "v2ray")
|
|
|
+o:depends("type", "vless")
|
|
|
o:depends("type", "trojan")
|
|
|
|
|
|
o = s:option(Value, "tls_host", translate("TLS Host"))
|
|
|
@@ -383,6 +396,7 @@ o = s:option(Flag, "mux", translate("Mux"))
|
|
|
o.rmempty = true
|
|
|
o.default = "0"
|
|
|
o:depends("type", "v2ray")
|
|
|
+o:depends("type", "vless")
|
|
|
|
|
|
o = s:option(Value, "concurrency", translate("Concurrency"))
|
|
|
o.datatype = "uinteger"
|
|
|
@@ -396,6 +410,7 @@ o.rmempty = true
|
|
|
o.default = "0"
|
|
|
o:depends("type", "trojan")
|
|
|
o:depends("type", "v2ray")
|
|
|
+o:depends("type", "vless")
|
|
|
o.description = translate("If you have a self-signed certificate,please check the box")
|
|
|
|
|
|
o = s:option(DummyValue, "upload", translate("Upload"))
|