From 3de7600a4c1b9b232d3773f74a5332100fd341bf Mon Sep 17 00:00:00 2001 From: isluckys <152280768+isluckys@users.noreply.github.com> Date: Sun, 3 Dec 2023 19:42:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=B1=BB=E5=9E=8B=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E9=97=AE=E9=A2=98=20(#539)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 之前一个pr写的if直接写成了vmess导致其他的比如说ss、Trojan的都会被覆盖 --- api/newV2board/v2board.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/newV2board/v2board.go b/api/newV2board/v2board.go index 5469fff..0959f69 100644 --- a/api/newV2board/v2board.go +++ b/api/newV2board/v2board.go @@ -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{