Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Septrum101 committed Jun 25, 2023
1 parent 5ab352f commit 0f10e83
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion service/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 0f10e83

Please sign in to comment.