Commit b82a8f48 authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

proxyd: Add logging for origin and remote IP (#3482)

Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: default avatarMark Tyneway <mark.tyneway@gmail.com>
parent 7d7c4fdf
---
'@eth-optimism/proxyd': patch
---
Add logging for origin and remote IP'
...@@ -264,6 +264,8 @@ func (s *Server) HandleRPC(w http.ResponseWriter, r *http.Request) { ...@@ -264,6 +264,8 @@ func (s *Server) HandleRPC(w http.ResponseWriter, r *http.Request) {
"req_id", GetReqID(ctx), "req_id", GetReqID(ctx),
"auth", GetAuthCtx(ctx), "auth", GetAuthCtx(ctx),
"user_agent", userAgent, "user_agent", userAgent,
"origin", origin,
"remote_ip", xff,
) )
body, err := io.ReadAll(io.LimitReader(r.Body, s.maxBodySize)) body, err := io.ReadAll(io.LimitReader(r.Body, s.maxBodySize))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment