2023-09-16 09:46:59 -04: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,
|
2024-11-12 20:21:31 -05:00
|
|
|
"socks5": true,
|
2023-09-16 09:46:59 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
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,
|
2023-09-16 09:46:59 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|