fix: typo

This commit is contained in:
Senis John 2023-06-25 12:05:14 +08:00
parent 5ab352f9c9
commit 0f10e837e4
No known key found for this signature in database
GPG Key ID: 845E9E4727C3E1A4

View File

@ -399,7 +399,11 @@ func (c *Controller) addNewUser(userInfo *[]api.UserInfo, nodeInfo *api.NodeInfo
users := make([]*protocol.User, 0)
switch nodeInfo.NodeType {
case "V2ray":
users = c.buildVmessUser(userInfo)
if nodeInfo.EnableVless {
users = c.buildVlessUser(userInfo)
} else {
users = c.buildVmessUser(userInfo)
}
case "Trojan":
users = c.buildTrojanUser(userInfo)
case "Shadowsocks":