update: vless,vmess parser

This commit is contained in:
2024-03-21 00:59:47 +08:00
committed by Nite07
parent 1a7944f7a1
commit f545848ce1
2 changed files with 22 additions and 35 deletions

View File

@@ -79,9 +79,16 @@ func ParseVmess(proxy string) (model.Outbound, error) {
UTLS: &model.OutboundUTLSOptions{
Fingerprint: vmess.Fp,
},
ALPN: alpn,
ALPN: alpn,
ServerName: vmess.Sni,
},
}
if vmess.Fp != "" {
result.VMessOptions.OutboundTLSOptionsContainer.TLS.UTLS = &model.OutboundUTLSOptions{
Enabled: true,
Fingerprint: vmess.Fp,
}
}
}
if vmess.Net == "ws" {
@@ -108,11 +115,6 @@ func ParseVmess(proxy string) (model.Outbound, error) {
Type: "quic",
QUICOptions: quic,
}
result.VMessOptions.OutboundTLSOptionsContainer = model.OutboundTLSOptionsContainer{
TLS: &model.OutboundTLSOptions{
Enabled: true,
},
}
}
if vmess.Net == "grpc" {