Skip to content

Commit

Permalink
feat: 增加 Hysteria 节点支持
Browse files Browse the repository at this point in the history
  • Loading branch information
nitezs committed Mar 9, 2024
1 parent 68269fd commit fd7c460
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- Vmess
- Vless (Clash.Meta)
- Trojan
- Hysteria (Clash.Meta)
- Hysteria2 (Clash.Meta)

## 使用
Expand Down
1 change: 1 addition & 0 deletions model/clash.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func GetSupportProxyTypes(clashType ClashType) map[string]bool {
"vmess": true,
"trojan": true,
"vless": true,
"hysteria": true,
"hysteria2": true,
}
}
Expand Down
2 changes: 2 additions & 0 deletions model/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ func (p Proxy) MarshalYAML() (interface{}, error) {
return ProxyToVless(p), nil
case "trojan":
return ProxyToTrojan(p), nil
case "hysteria":
return ProxyToHysteria(p), nil
case "hysteria2":
return ProxyToHysteria2(p), nil
}
Expand Down

0 comments on commit fd7c460

Please sign in to comment.