node type to lower

This commit is contained in:
yuzuki999
2023-05-19 11:27:08 +08:00
parent 69eec50f81
commit 3f6f80b5e5
3 changed files with 10 additions and 9 deletions

View File

@@ -24,9 +24,9 @@ func (c *Controller) addNewUser(userInfo []panel.UserInfo, nodeInfo *panel.NodeI
} else {
users = c.buildVmessUsers(userInfo)
}
case "Trojan":
case "trojan":
users = c.buildTrojanUsers(userInfo)
case "Shadowsocks":
case "shadowsocks":
users = c.buildSSUsers(userInfo, getCipherFromString(nodeInfo.Cipher))
default:
return fmt.Errorf("unsupported node type: %s", nodeInfo.NodeType)