This commit is contained in:
曹佳鑫 2017-01-28 13:42:57 +00:00 committed by GitHub
commit 07ef4cbb7f
2 changed files with 4 additions and 0 deletions

0
Makefile.cross-compiles Normal file → Executable file
View File

View File

@ -91,6 +91,9 @@ func controlWorker(c *conn.Conn) {
return
}
if ret == 999 {
closeFlag = false
}
// if login failed, just return
if ret > 0 {
return
@ -287,6 +290,7 @@ func doLogin(req *msg.ControlReq, c *conn.Conn) (ret int64, info string, s *serv
if err != nil {
info = fmt.Sprintf("ProxyName [%s], %v", req.ProxyName, err)
log.Warn(info)
ret = 999
return
}
}