Merge pull request #20 from Mrdotdotdot/master

Update socks5.go
This commit is contained in:
yisier
2022-11-09 14:18:06 +08:00
committed by GitHub
+3
View File
@@ -344,6 +344,9 @@ func (s *Sock5ModeServer) Auth(c net.Conn) error {
if s.task.MultiAccount != nil {
// enable multi user auth
U = string(user)
if len(U) == 0 {
return errors.New("验证不通过")
}
var ok bool
P, ok = s.task.MultiAccount.AccountMap[U]
if !ok {