2023-09-16 21:46:59 +08:00
|
|
|
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,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if clashType == ClashMeta {
|
|
|
|
return map[string]bool{
|
2023-10-31 15:14:29 +08:00
|
|
|
"ss": true,
|
|
|
|
"ssr": true,
|
|
|
|
"vmess": true,
|
|
|
|
"trojan": true,
|
|
|
|
"vless": true,
|
2024-03-09 17:17:57 +08:00
|
|
|
"hysteria": true,
|
2023-10-31 15:14:29 +08:00
|
|
|
"hysteria2": true,
|
2023-09-16 21:46:59 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|