1
0
mirror of https://github.com/bestnite/sub2clash.git synced 2026-05-04 07:46:08 +00:00

增加socks5协议支持

This commit is contained in:
96368a
2024-11-13 09:21:31 +08:00
parent 66f214ae10
commit fefb4b895a
6 changed files with 87 additions and 0 deletions
+2
View File
@@ -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
+1
View File
@@ -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"`