fix: ss2022 not working as expect

fix: minor bugs
This commit is contained in:
Senis John
2022-12-27 17:28:56 +08:00
parent 451b5a1fd4
commit b5a8f4464c
2 changed files with 44 additions and 63 deletions

View File

@@ -168,7 +168,7 @@ func (c *Controller) buildUserTag(user *api.UserInfo) string {
}
func (c *Controller) checkShadowsocksPassword(password string, method string) (string, error) {
if c.panelType == "V2board" {
if strings.Contains(c.panelType, "V2board") {
var userKey string
if len(password) < 16 {
return "", fmt.Errorf("shadowsocks2022 key's length must be greater than 16")