|
@@ -166,7 +166,7 @@ if is_finded("naive") then
|
|
|
o:value("naiveproxy", translate("NaiveProxy"))
|
|
|
end
|
|
|
if is_finded("hysteria") then
|
|
|
- o:value("hysteria", translate("Hysteria"))
|
|
|
+ o:value("hysteria2", translate("Hysteria2"))
|
|
|
end
|
|
|
if is_finded("tuic-client") then
|
|
|
o:value("tuic", translate("TUIC"))
|
|
@@ -254,7 +254,7 @@ o:depends("type", "ss")
|
|
|
o:depends("type", "v2ray")
|
|
|
o:depends("type", "trojan")
|
|
|
o:depends("type", "naiveproxy")
|
|
|
-o:depends("type", "hysteria")
|
|
|
+o:depends("type", "hysteria2")
|
|
|
o:depends("type", "tuic")
|
|
|
o:depends("type", "shadowtls")
|
|
|
o:depends("type", "socks5")
|
|
@@ -267,7 +267,7 @@ o:depends("type", "ss")
|
|
|
o:depends("type", "v2ray")
|
|
|
o:depends("type", "trojan")
|
|
|
o:depends("type", "naiveproxy")
|
|
|
-o:depends("type", "hysteria")
|
|
|
+o:depends("type", "hysteria2")
|
|
|
o:depends("type", "tuic")
|
|
|
o:depends("type", "shadowtls")
|
|
|
o:depends("type", "socks5")
|
|
@@ -383,100 +383,100 @@ o:depends("type", "ssr")
|
|
|
|
|
|
-- [[ Hysteria2 ]]--
|
|
|
o = s:option(Value, "hy2_auth", translate("Users Authentication"))
|
|
|
-o:depends("type", "hysteria")
|
|
|
+o:depends("type", "hysteria2")
|
|
|
o.rmempty = false
|
|
|
|
|
|
o = s:option(Flag, "flag_port_hopping", translate("Enable Port Hopping"))
|
|
|
-o:depends("type", "hysteria")
|
|
|
+o:depends("type", "hysteria2")
|
|
|
o.rmempty = true
|
|
|
o.default = "0"
|
|
|
|
|
|
o = s:option(Value, "port_range", translate("Port Range"))
|
|
|
-o:depends({type = "hysteria", flag_port_hopping = true})
|
|
|
+o:depends({type = "hysteria2", flag_port_hopping = true})
|
|
|
o.datatype = "portrange"
|
|
|
o.rmempty = true
|
|
|
|
|
|
o = s:option(Flag, "flag_transport", translate("Enable Transport Protocol Settings"))
|
|
|
-o:depends("type", "hysteria")
|
|
|
+o:depends("type", "hysteria2")
|
|
|
o.rmempty = true
|
|
|
o.default = "0"
|
|
|
|
|
|
o = s:option(ListValue, "transport_protocol", translate("Transport Protocol"))
|
|
|
-o:depends({type = "hysteria", flag_transport = true})
|
|
|
+o:depends({type = "hysteria2", flag_transport = true})
|
|
|
o:value("udp", translate("UDP"))
|
|
|
o.default = "udp"
|
|
|
o.rmempty = true
|
|
|
|
|
|
o = s:option(Value, "hopinterval", translate("Port Hopping Interval(Unit:Second)"))
|
|
|
-o:depends({type = "hysteria", flag_transport = true, flag_port_hopping = true})
|
|
|
+o:depends({type = "hysteria2", flag_transport = true, flag_port_hopping = true})
|
|
|
o.datatype = "uinteger"
|
|
|
o.rmempty = true
|
|
|
o.default = "30"
|
|
|
|
|
|
o = s:option(Flag, "flag_obfs", translate("Enable Obfuscation"))
|
|
|
-o:depends("type", "hysteria")
|
|
|
+o:depends("type", "hysteria2")
|
|
|
o.rmempty = true
|
|
|
o.default = "0"
|
|
|
|
|
|
o = s:option(Flag, "lazy_mode", translate("Enable Lazy Mode"))
|
|
|
-o:depends("type", "hysteria")
|
|
|
+o:depends("type", "hysteria2")
|
|
|
o.rmempty = true
|
|
|
o.default = "0"
|
|
|
|
|
|
o = s:option(Value, "obfs_type", translate("Obfuscation Type"))
|
|
|
-o:depends({type = "hysteria", flag_obfs = "1"})
|
|
|
+o:depends({type = "hysteria2", flag_obfs = "1"})
|
|
|
o.rmempty = true
|
|
|
o.default = "salamander"
|
|
|
|
|
|
o = s:option(Value, "salamander", translate("Obfuscation Password"))
|
|
|
-o:depends({type = "hysteria", flag_obfs = "1"})
|
|
|
+o:depends({type = "hysteria2", flag_obfs = "1"})
|
|
|
o.rmempty = true
|
|
|
o.default = "cry_me_a_r1ver"
|
|
|
|
|
|
o = s:option(Flag, "flag_quicparam", translate("Hysterir QUIC parameters"))
|
|
|
-o:depends("type", "hysteria")
|
|
|
+o:depends("type", "hysteria2")
|
|
|
o.rmempty = true
|
|
|
o.default = "0"
|
|
|
|
|
|
o = s:option(Flag, "disablepathmtudiscovery", translate("Disable QUIC path MTU discovery"))
|
|
|
-o:depends({type = "hysteria",flag_quicparam = "1"})
|
|
|
+o:depends({type = "hysteria2",flag_quicparam = "1"})
|
|
|
o.rmempty = true
|
|
|
o.default = false
|
|
|
|
|
|
--[[Hysteria2 QUIC parameters setting]]
|
|
|
o = s:option(Value, "initstreamreceivewindow", translate("QUIC initStreamReceiveWindow"))
|
|
|
-o:depends({type = "hysteria", flag_quicparam = "1"})
|
|
|
+o:depends({type = "hysteria2", flag_quicparam = "1"})
|
|
|
o.datatype = "uinteger"
|
|
|
o.rmempty = true
|
|
|
o.default = "8388608"
|
|
|
|
|
|
o = s:option(Value, "maxstreamseceivewindow", translate("QUIC maxStreamReceiveWindow"))
|
|
|
-o:depends({type = "hysteria", flag_quicparam = "1"})
|
|
|
+o:depends({type = "hysteria2", flag_quicparam = "1"})
|
|
|
o.datatype = "uinteger"
|
|
|
o.rmempty = true
|
|
|
o.default = "8388608"
|
|
|
|
|
|
o = s:option(Value, "initconnreceivewindow", translate("QUIC initConnReceiveWindow"))
|
|
|
-o:depends({type = "hysteria", flag_quicparam = "1"})
|
|
|
+o:depends({type = "hysteria2", flag_quicparam = "1"})
|
|
|
o.datatype = "uinteger"
|
|
|
o.rmempty = true
|
|
|
o.default = "20971520"
|
|
|
|
|
|
o = s:option(Value, "maxconnreceivewindow", translate("QUIC maxConnReceiveWindow"))
|
|
|
-o:depends({type = "hysteria", flag_quicparam = "1"})
|
|
|
+o:depends({type = "hysteria2", flag_quicparam = "1"})
|
|
|
o.datatype = "uinteger"
|
|
|
o.rmempty = true
|
|
|
o.default = "20971520"
|
|
|
|
|
|
o = s:option(Value, "maxidletimeout", translate("QUIC maxIdleTimeout(Unit:second)"))
|
|
|
-o:depends({type = "hysteria", flag_quicparam = "1"})
|
|
|
+o:depends({type = "hysteria2", flag_quicparam = "1"})
|
|
|
o.rmempty = true
|
|
|
o.datatype = "uinteger"
|
|
|
o.default = "30"
|
|
|
|
|
|
o = s:option(Value, "keepaliveperiod", translate("The keep-alive period.(Unit:second)"))
|
|
|
o.description = translate("Default value 0 indicatesno heartbeat.")
|
|
|
-o:depends({type = "hysteria", flag_quicparam = "1"})
|
|
|
+o:depends({type = "hysteria2", flag_quicparam = "1"})
|
|
|
o:depends({type = "v2ray", v2ray_protocol = "wireguard"})
|
|
|
o.rmempty = true
|
|
|
o.datatype = "uinteger"
|
|
@@ -950,14 +950,14 @@ o.rmempty = true
|
|
|
o = s:option(Value, "uplink_capacity", translate("Uplink Capacity(Default:Mbps)"))
|
|
|
o.datatype = "uinteger"
|
|
|
o:depends("transport", "kcp")
|
|
|
-o:depends("type", "hysteria")
|
|
|
+o:depends("type", "hysteria2")
|
|
|
o.default = 5
|
|
|
o.rmempty = true
|
|
|
|
|
|
o = s:option(Value, "downlink_capacity", translate("Downlink Capacity(Default:Mbps)"))
|
|
|
o.datatype = "uinteger"
|
|
|
o:depends("transport", "kcp")
|
|
|
-o:depends("type", "hysteria")
|
|
|
+o:depends("type", "hysteria2")
|
|
|
o.default = 20
|
|
|
o.rmempty = true
|
|
|
|
|
@@ -1030,7 +1030,7 @@ o:depends({type = "v2ray", v2ray_protocol = "shadowsocks", reality = false})
|
|
|
o:depends({type = "v2ray", v2ray_protocol = "socks", socks_ver = "5", reality = false})
|
|
|
o:depends({type = "v2ray", v2ray_protocol = "http", reality = false})
|
|
|
o:depends("type", "trojan")
|
|
|
-o:depends("type", "hysteria")
|
|
|
+o:depends("type", "hysteria2")
|
|
|
|
|
|
-- [[ TLS部分 ]] --
|
|
|
o = s:option(Flag, "tls_sessionTicket", translate("Session Ticket"))
|
|
@@ -1117,12 +1117,12 @@ o.rmempty = true
|
|
|
o = s:option(Flag, "insecure", translate("allowInsecure"))
|
|
|
o.rmempty = false
|
|
|
o:depends("tls", true)
|
|
|
-o:depends("type", "hysteria")
|
|
|
+o:depends("type", "hysteria2")
|
|
|
o.description = translate("If true, allowss insecure connection at TLS client, e.g., TLS server uses unverifiable certificates.")
|
|
|
|
|
|
-- [[ Hysteria2 TLS pinSHA256 ]] --
|
|
|
o = s:option(Value, "pinsha256", translate("Certificate fingerprint"))
|
|
|
-o:depends({type = "hysteria", insecure = true })
|
|
|
+o:depends({type = "hysteria2", insecure = true })
|
|
|
o.rmempty = true
|
|
|
|
|
|
|
|
@@ -1230,7 +1230,7 @@ o = s:option(Flag, "certificate", translate("Self-signed Certificate"))
|
|
|
o.rmempty = true
|
|
|
o.default = "0"
|
|
|
o:depends("type", "tuic")
|
|
|
-o:depends({type = "hysteria", insecure = false})
|
|
|
+o:depends({type = "hysteria2", insecure = false})
|
|
|
o:depends({type = "trojan", tls = true, insecure = false})
|
|
|
o:depends({type = "v2ray", v2ray_protocol = "vmess", tls = true, insecure = false})
|
|
|
o:depends({type = "v2ray", v2ray_protocol = "vless", tls = true, insecure = false})
|
|
@@ -1272,9 +1272,9 @@ end
|
|
|
|
|
|
o = s:option(Value, "certpath", translate("Current Certificate Path"))
|
|
|
o:depends("certificate", 1)
|
|
|
-o:value("/etc/ssl/private/ca.pem")
|
|
|
+o:value("/etc/ssl/private/ca.crt")
|
|
|
o.description = translate("Please confirm the current certificate path")
|
|
|
-o.default = "/etc/ssl/private/ca.pem"
|
|
|
+o.default = "/etc/ssl/private/ca.crt"
|
|
|
|
|
|
o = s:option(Flag, "fast_open", translate("TCP Fast Open"), translate("Enabling TCP Fast Open Requires Server Support."))
|
|
|
o.rmempty = true
|
|
@@ -1282,7 +1282,7 @@ o.default = "0"
|
|
|
o:depends("type", "ssr")
|
|
|
o:depends("type", "ss")
|
|
|
o:depends("type", "trojan")
|
|
|
-o:depends("type", "hysteria")
|
|
|
+o:depends("type", "hysteria2")
|
|
|
|
|
|
o = s:option(Flag, "switch_enable", translate("Enable Auto Switch"))
|
|
|
o.rmempty = false
|
|
@@ -1318,3 +1318,5 @@ if is_finded("kcptun-client") then
|
|
|
end
|
|
|
|
|
|
return m
|
|
|
+
|
|
|
+
|