diff --git a/lib/tun2/server.go b/lib/tun2/server.go index a2e0004..9fef581 100644 --- a/lib/tun2/server.go +++ b/lib/tun2/server.go @@ -185,6 +185,10 @@ func (s *Server) ListenAndServe() error { } stream.Close() + + ln.Log(ln.F{ + "action": "ping_health_is_good", + }, c.F()) } s.connlock.Unlock() @@ -379,6 +383,13 @@ func (s *Server) RoundTrip(req *http.Request) (*http.Response, error) { return nil, err } + ln.Log(c.F(), ln.F{ + "action": "http_traffic", + "remote_addr": req.RemoteAddr, + "host": req.Host, + "uri": req.RequestURI, + }) + return resp, nil }