mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-06-17 20:53:18 +08:00
🐛 Fix vless parser cannot correctly parse some reality/grpc fields
This commit is contained in:
@ -110,6 +110,7 @@ func ParseVless(proxy string) (model.Proxy, error) {
|
||||
|
||||
if security == "reality" {
|
||||
result.TLS = true
|
||||
result.Servername = sni
|
||||
result.RealityOpts = model.RealityOptions{
|
||||
PublicKey: pbk,
|
||||
ShortID: sid,
|
||||
@ -133,7 +134,9 @@ func ParseVless(proxy string) (model.Proxy, error) {
|
||||
|
||||
if _type == "grpc" {
|
||||
result.Network = "grpc"
|
||||
result.Servername = serviceName
|
||||
result.GrpcOpts = model.GrpcOptions{
|
||||
GrpcServiceName: serviceName,
|
||||
}
|
||||
}
|
||||
|
||||
if _type == "http" {
|
||||
|
Reference in New Issue
Block a user