mirror of
https://github.com/bestnite/sub2sing-box.git
synced 2025-10-28 09:33:57 +00:00
update: vless,vmess parser
This commit is contained in:
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user