Skip to content

Commit

Permalink
修复类型判断问题 (XrayR-project#539)
Browse files Browse the repository at this point in the history
之前一个pr写的if直接写成了vmess导致其他的比如说ss、Trojan的都会被覆盖
  • Loading branch information
isluckys authored Dec 3, 2023
1 parent a0378b6 commit 3de7600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/newV2board/v2board.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 3de7600

Please sign in to comment.