修复类型判断问题 (#539)

之前一个pr写的if直接写成了vmess导致其他的比如说ss、Trojan的都会被覆盖
This commit is contained in:
isluckys 2023-12-03 19:42:03 +08:00 committed by GitHub
parent a0378b6cff
commit 3de7600a4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ func New(apiConfig *api.Config) *APIClient {
if apiConfig.NodeType =="V2ray" && apiConfig.EnableVless {
nodeType = "vless"
} else {
nodeType = "vmess"
nodeType = strings.ToLower(apiConfig.NodeType)
}
// Create Key for each requests
client.SetQueryParams(map[string]string{