Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于ss.go代码的疑惑 #32

Open
Xioaruan912 opened this issue Dec 5, 2024 · 0 comments
Open

关于ss.go代码的疑惑 #32

Xioaruan912 opened this issue Dec 5, 2024 · 0 comments

Comments

@Xioaruan912
Copy link

Xioaruan912 commented Dec 5, 2024

在 node/ss.go 中的

func parsingSS(s string) (string, string, string)

这个代码段中

if u.User == nil {
// 截取ss://后的字符串
raw := s[5:]
s = "ss://" + Base64Decode(raw)
u, err = url.Parse(s)
}

这段代码截取了ss节点ss:// 后面的内容进行base64解码
但是如果url为 ss://abcsabcd#备注
那么是不是也代表备注被base64解码 导致出错呢
因为我通过xui导入的ss节点带有备注的话clash无法识别 日志显示 无效的ss url
但是我删除了备注 就可以识别

麻烦看看这段代码
或者是在其他地方进行处理的吗

@Xioaruan912 Xioaruan912 changed the title 你好 关于ss.go代码的疑惑 关于ss.go代码的疑惑 Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant