Skip to content

Commit

Permalink
RTG-1558 net/http: remove client IP from logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoyla authored and bwesterb committed Dec 6, 2023
1 parent cc74c70 commit decd3fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1902,8 +1902,8 @@ func (c *conn) serve(ctx context.Context) {
if serverName == "" {
serverName = "<none>"
}
c.server.logf("http: TLS handshake error with sni=%s from %s: %v",
serverName, c.rwc.RemoteAddr(), err)
c.server.logf("http: TLS handshake error with sni=%s: %v",
serverName, err)
return
}
// Restore Conn-level deadlines.
Expand Down

0 comments on commit decd3fa

Please sign in to comment.