tun2: log on backend connect

This commit is contained in:
Cadey Ratio 2017-03-26 13:18:58 -07:00
parent 3faeae8187
commit db3f0af99a
1 changed files with 6 additions and 0 deletions

View File

@ -213,6 +213,12 @@ func (s *Server) HandleConn(c net.Conn, isKCP bool) {
domain: auth.Domain,
}
ln.Log(ln.F{
"action": "backend_connected",
"remote": c.RemoteAddr().String(),
"kcp": isKCP,
})
s.connlock.Lock()
s.conns[c] = connection
s.connlock.Unlock()