mirror of
https://github.com/nitezs/sub2clash.git
synced 2024-12-24 12:44:42 -05:00
30 lines
455 B
Go
30 lines
455 B
Go
|
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{
|
||
|
"ss": true,
|
||
|
"ssr": true,
|
||
|
"vmess": true,
|
||
|
"trojan": true,
|
||
|
"vless": true,
|
||
|
}
|
||
|
}
|
||
|
return nil
|
||
|
}
|