1
0
mirror of https://github.com/nitezs/sub2clash.git synced 2024-12-23 15:14:43 -05:00
sub2clash/model/clash.go

34 lines
555 B
Go
Raw Normal View History

package model
type ClashType int
const (
Clash ClashType = 1 + iota
ClashMeta
)
func GetSupportProxyTypes(clashType ClashType) map[string]bool {
if clashType == Clash {
return map[string]bool{
"ss": true,
"ssr": true,
"vmess": true,
"trojan": true,
2024-11-12 20:21:31 -05:00
"socks5": true,
}
}
if clashType == ClashMeta {
return map[string]bool{
2023-10-31 03:14:29 -04:00
"ss": true,
"ssr": true,
"vmess": true,
"trojan": true,
"vless": true,
2024-03-09 04:17:57 -05:00
"hysteria": true,
2023-10-31 03:14:29 -04:00
"hysteria2": true,
2024-11-12 20:21:31 -05:00
"socks5": true,
}
}
return nil
}