mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-06-17 12:43:18 +08:00
🐛 fix #37
This commit is contained in:
@ -72,6 +72,14 @@ func ParseHysteria2(proxy string) (model.Proxy, error) {
|
||||
enableTLS := pinSHA256 != ""
|
||||
insecureBool := insecure == "1"
|
||||
|
||||
if remarks == "" {
|
||||
remarksIndex := strings.LastIndex(proxy, "#")
|
||||
if remarksIndex != -1 {
|
||||
remarks = proxy[remarksIndex:]
|
||||
remarks, _ = url.QueryUnescape(remarks)
|
||||
}
|
||||
}
|
||||
|
||||
result := model.Proxy{
|
||||
Type: "hysteria2",
|
||||
Name: remarks,
|
||||
|
Reference in New Issue
Block a user