This commit is contained in:
Tsao 2017-01-12 17:50:32 +08:00
parent edb97abf50
commit 2a484d3a61
2 changed files with 5 additions and 1 deletions

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

@ -1,4 +1,4 @@
export PATH := $(GOPATH)/bin:$(PATH)
export PATH := $PATH
export GO15VENDOREXPERIMENT := 1
all: build

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
@ -273,6 +276,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
}
}