refactor to compatible with sing-box 1.11

This commit is contained in:
2025-01-20 15:08:49 +08:00
parent 22ae18120a
commit 0a6fe9da0c
13 changed files with 340 additions and 169 deletions

View File

@@ -99,11 +99,9 @@ func ParseHysteria2(proxy string) (model.Outbound, error) {
}
result := model.Outbound{
Outbound: option.Outbound{
Type: "hysteria2",
Tag: strings.TrimSpace(remarks),
Options: outboundOptions,
},
Type: "hysteria2",
Tag: strings.TrimSpace(remarks),
Options: outboundOptions,
}
return result, nil