From: Robert Griesemer Date: Sat, 6 Jun 2009 00:08:22 +0000 (-0700) Subject: show remote addr instead of host in log lines X-Git-Tag: weekly.2009-11-06~1451 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=42cf59a752e66194a725f7272289d381e6fd7157;p=gostls13.git show remote addr instead of host in log lines R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=29961 CL=29961 --- diff --git a/usr/gri/pretty/godoc.go b/usr/gri/pretty/godoc.go index 3ffc6d4b0b..98d4cd4a27 100644 --- a/usr/gri/pretty/godoc.go +++ b/usr/gri/pretty/godoc.go @@ -599,7 +599,7 @@ func servePkg(c *http.Conn, r *http.Request) { func loggingHandler(h http.Handler) http.Handler { return http.HandlerFunc(func(c *http.Conn, req *http.Request) { - log.Stderrf("%s\t%s", req.Host, req.Url.Path); + log.Stderrf("%s\t%s", c.RemoteAddr, req.Url); h.ServeHTTP(c, req); }) }