tun2: log on backend connect
This commit is contained in:
parent
3faeae8187
commit
db3f0af99a
|
@ -213,6 +213,12 @@ func (s *Server) HandleConn(c net.Conn, isKCP bool) {
|
||||||
domain: auth.Domain,
|
domain: auth.Domain,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ln.Log(ln.F{
|
||||||
|
"action": "backend_connected",
|
||||||
|
"remote": c.RemoteAddr().String(),
|
||||||
|
"kcp": isKCP,
|
||||||
|
})
|
||||||
|
|
||||||
s.connlock.Lock()
|
s.connlock.Lock()
|
||||||
s.conns[c] = connection
|
s.conns[c] = connection
|
||||||
s.connlock.Unlock()
|
s.connlock.Unlock()
|
||||||
|
|
Loading…
Reference in New Issue