mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-06-17 20:53:18 +08:00
✨ 增加socks5协议支持
This commit is contained in:
@ -14,6 +14,7 @@ func GetSupportProxyTypes(clashType ClashType) map[string]bool {
|
||||
"ssr": true,
|
||||
"vmess": true,
|
||||
"trojan": true,
|
||||
"socks5": true,
|
||||
}
|
||||
}
|
||||
if clashType == ClashMeta {
|
||||
@ -25,6 +26,7 @@ func GetSupportProxyTypes(clashType ClashType) map[string]bool {
|
||||
"vless": true,
|
||||
"hysteria": true,
|
||||
"hysteria2": true,
|
||||
"socks5": true,
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
@ -10,6 +10,7 @@ type Proxy struct {
|
||||
Port int `yaml:"port,omitempty"`
|
||||
Type string `yaml:"type,omitempty"`
|
||||
Cipher string `yaml:"cipher,omitempty"`
|
||||
Username string `yaml:"username,omitempty"`
|
||||
Password string `yaml:"password,omitempty"`
|
||||
UDP bool `yaml:"udp,omitempty"`
|
||||
UUID string `yaml:"uuid,omitempty"`
|
||||
|
Reference in New Issue
Block a user