@@ -54,31 +54,31 @@ shadowsocks = tag equals "shadowsocks"i address method password (obfs_typev obfs
5454 $set(proxy, "plugin-opts.path", obfs.path);
5555 }
5656}
57- vmess = tag equals "vmess"i address method uuid (transport/transport_host/transport_path/over_tls/tls_host /tls_verification/tls_cert_sha256/tls_pubkey_sha256/vmess_alterId/fast_open/udp_relay/ip_mode/public_key/short_id/block_quic/others)* {
57+ vmess = tag equals "vmess"i address method uuid (transport/transport_host/transport_path/over_tls/tls_name/sni /tls_verification/tls_cert_sha256/tls_pubkey_sha256/vmess_alterId/fast_open/udp_relay/ip_mode/public_key/short_id/block_quic/others)* {
5858 proxy.type = "vmess";
5959 proxy.cipher = proxy.cipher || "none";
6060 proxy.alterId = proxy.alterId || 0;
6161 handleTransport();
6262}
63- vless = tag equals "vless"i address uuid (transport/transport_host/transport_path/over_tls/tls_host /tls_verification/tls_cert_sha256/tls_pubkey_sha256/fast_open/udp_relay/ip_mode/flow/public_key/short_id/block_quic/others)* {
63+ vless = tag equals "vless"i address uuid (transport/transport_host/transport_path/over_tls/tls_name/sni /tls_verification/tls_cert_sha256/tls_pubkey_sha256/fast_open/udp_relay/ip_mode/flow/public_key/short_id/block_quic/others)* {
6464 proxy.type = "vless";
6565 handleTransport();
6666}
67- trojan = tag equals "trojan"i address password (transport/transport_host/transport_path/over_tls/tls_host /tls_verification/tls_cert_sha256/tls_pubkey_sha256/fast_open/udp_relay/ip_mode/block_quic/others)* {
67+ trojan = tag equals "trojan"i address password (transport/transport_host/transport_path/over_tls/tls_name/sni /tls_verification/tls_cert_sha256/tls_pubkey_sha256/fast_open/udp_relay/ip_mode/block_quic/others)* {
6868 proxy.type = "trojan";
6969 handleTransport();
7070}
71- hysteria2 = tag equals "hysteria2"i address password (tls_host /tls_verification/tls_cert_sha256/tls_pubkey_sha256/udp_relay/fast_open/download_bandwidth/salamander_password/ecn/ip_mode/block_quic/others)* {
71+ hysteria2 = tag equals "hysteria2"i address password (tls_name/sni /tls_verification/tls_cert_sha256/tls_pubkey_sha256/udp_relay/fast_open/download_bandwidth/salamander_password/ecn/ip_mode/block_quic/others)* {
7272 proxy.type = "hysteria2";
7373}
74- https = tag equals "https"i address (username password)? (tls_host /tls_verification/tls_cert_sha256/tls_pubkey_sha256/fast_open/udp_relay/ip_mode/block_quic/others)* {
74+ https = tag equals "https"i address (username password)? (tls_name/sni /tls_verification/tls_cert_sha256/tls_pubkey_sha256/fast_open/udp_relay/ip_mode/block_quic/others)* {
7575 proxy.type = "http";
7676 proxy.tls = true;
7777}
7878http = tag equals "http"i address (username password)? (fast_open/udp_relay/ip_mode/block_quic/others)* {
7979 proxy.type = "http";
8080}
81- socks5 = tag equals "socks5"i address (username password)? (over_tls/tls_host /tls_verification/tls_cert_sha256/tls_pubkey_sha256/fast_open/udp_relay/ip_mode/block_quic/others)* {
81+ socks5 = tag equals "socks5"i address (username password)? (over_tls/tls_name/sni /tls_verification/tls_cert_sha256/tls_pubkey_sha256/fast_open/udp_relay/ip_mode/block_quic/others)* {
8282 proxy.type = "socks5";
8383}
8484
@@ -175,7 +175,8 @@ shadow_tls_sni = comma "shadow-tls-sni" equals match:[^,]+ { proxy["shadow-tls-s
175175shadow_tls_password = comma "shadow-tls-password" equals match:[^,]+ { proxy["shadow-tls-password"] = match.join(""); }
176176
177177over_tls = comma "over-tls" equals flag:bool { proxy.tls = flag; }
178- tls_host = comma sni:("tls-name"/"sni") equals host:domain { proxy.sni = host; }
178+ tls_name = comma sni:("tls-name") equals host:domain { proxy.sni = host; }
179+ sni = comma sni:("sni") equals host:domain { proxy.sni = host; }
179180tls_verification = comma "skip-cert-verify" equals flag:bool { proxy["skip-cert-verify"] = flag; }
180181tls_cert_sha256 = comma "tls-cert-sha256" equals match:[^,]+ { proxy["tls-fingerprint"] = match.join("").replace(/^"(.*)"$/, '$1'); }
181182tls_pubkey_sha256 = comma "tls-pubkey-sha256" equals match:[^,]+ { proxy["tls-pubkey-sha256"] = match.join("").replace(/^"(.*)"$/, '$1'); }
0 commit comments