mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-10-26 09:11:01 +00:00
fix: hy2 解析缺少 name 字段
This commit is contained in:
@@ -38,6 +38,8 @@ func ParseHysteria2(proxy string) (model.Proxy, error) {
|
||||
if strings.Contains(proxy, "#") {
|
||||
splitResult := strings.Split(proxy, "#")
|
||||
name, _ = url.QueryUnescape(splitResult[len(splitResult)-1])
|
||||
} else {
|
||||
name = strings.Join(serverAndPort, ":")
|
||||
}
|
||||
// 返回结果
|
||||
result := model.Proxy{
|
||||
|
||||
Reference in New Issue
Block a user