mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-06-17 20:53:18 +08:00
fix: vless 未解析 short-id
This commit is contained in:
@ -46,6 +46,10 @@ func ParseShadowsocksR(proxy string) (model.Proxy, error) {
|
||||
remarks, err = DecodeBase64(params.Get("remarks"))
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
return model.Proxy{}, err
|
||||
}
|
||||
|
||||
result := model.Proxy{
|
||||
Name: remarks,
|
||||
Type: "ssr",
|
||||
|
@ -49,6 +49,7 @@ func ParseVless(proxy string) (model.Proxy, error) {
|
||||
Servername: params.Get("sni"),
|
||||
RealityOpts: model.RealityOptions{
|
||||
PublicKey: params.Get("pbk"),
|
||||
ShortID: params.Get("sid"),
|
||||
},
|
||||
}
|
||||
if params.Get("alpn") != "" {
|
||||
|
Reference in New Issue
Block a user