From 3030ec5259f29d32697b543e63eb9601150dc615 Mon Sep 17 00:00:00 2001 From: Nite07 Date: Mon, 6 May 2024 02:07:30 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20vless=20parser=20lost=20fi?= =?UTF-8?q?ngerprint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parser/vless.go | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/parser/vless.go b/parser/vless.go index 0d428c7..ceea338 100644 --- a/parser/vless.go +++ b/parser/vless.go @@ -111,12 +111,12 @@ func ParseVless(proxy string) (model.Outbound, error) { ALPN: alpn, ServerName: sni, Insecure: insecureBool, + UTLS: &model.OutboundUTLSOptions{ + Enabled: enableUTLS, + Fingerprint: fp, + }, }, } - result.VLESSOptions.OutboundTLSOptionsContainer.TLS.UTLS = &model.OutboundUTLSOptions{ - Enabled: enableUTLS, - Fingerprint: fp, - } } if security == "reality" { @@ -126,13 +126,17 @@ func ParseVless(proxy string) (model.Outbound, error) { ALPN: alpn, ServerName: sni, Insecure: insecureBool, + UTLS: &model.OutboundUTLSOptions{ + Enabled: enableUTLS, + Fingerprint: fp, + }, + Reality: &model.OutboundRealityOptions{ + Enabled: true, + PublicKey: pbk, + ShortID: sid, + }, }, } - result.VLESSOptions.OutboundTLSOptionsContainer.TLS.Reality = &model.OutboundRealityOptions{ - Enabled: true, - PublicKey: pbk, - ShortID: sid, - } } if _type == "ws" {