fix: vless 未解析 short-id

This commit is contained in:
2024-03-10 13:56:22 +08:00
parent 94a320a682
commit 916670cf68
7 changed files with 9764 additions and 9762 deletions

View File

@ -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",

View File

@ -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") != "" {