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" {