diff --git a/lib/tun2/server.go b/lib/tun2/server.go index ec5b3d6..a2e0004 100644 --- a/lib/tun2/server.go +++ b/lib/tun2/server.go @@ -285,7 +285,7 @@ func (s *Server) HandleConn(c net.Conn, isKCP bool) { ln.Log(ln.F{ "action": "backend_connected", - }, connection) + }, connection.F()) s.connlock.Lock() s.conns[c] = connection @@ -341,7 +341,7 @@ func (s *Server) RoundTrip(req *http.Request) (*http.Response, error) { "remote_addr": req.RemoteAddr, "host": req.Host, "uri": req.RequestURI, - }, c) + }, c.F()) c.cancel() @@ -356,7 +356,7 @@ func (s *Server) RoundTrip(req *http.Request) (*http.Response, error) { "remote_addr": req.RemoteAddr, "host": req.Host, "uri": req.RequestURI, - }, c) + }, c.F()) c.cancel() @@ -372,7 +372,7 @@ func (s *Server) RoundTrip(req *http.Request) (*http.Response, error) { "remote_addr": req.RemoteAddr, "host": req.Host, "uri": req.RequestURI, - }, c) + }, c.F()) c.cancel()