2
0
mirror of https://github.com/stefan01/transocks.git synced 2025-02-22 11:40:54 +07:00

enhance connection error message.

This commit is contained in:
ymmt2005 2016-04-18 17:48:07 +09:00
parent 45f2ebe007
commit 2a18b3d27e

View File

@ -100,7 +100,9 @@ func (s *Server) handleConnection(c *net.TCPConn) {
for i := 0; i < 2; i++ {
e := <-ch
if e != nil {
log.Error(e.Error(), nil)
log.Error(e.Error(), map[string]interface{}{
"_dst": addr,
})
break
}
}