Skip to content

Commit 2fb0ca1

Browse files
committed
xff-3
2 parents 3253ad2 + a19d198 commit 2fb0ca1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

proxyd/server.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,14 @@ func (s *Server) HandleWS(w http.ResponseWriter, r *http.Request) {
740740

741741
log.Info("received WS connection", "req_id", GetReqID(ctx))
742742

743+
log.Debug(
744+
"received WS connection",
745+
"req_id", GetReqID(ctx),
746+
"user_agent", r.Header.Get("User-Agent"),
747+
"origin", r.Header.Get("Origin"),
748+
"remote_ip", stripXFF(GetXForwardedFor(ctx)),
749+
)
750+
743751
clientConn, err := s.upgrader.Upgrade(w, r, nil)
744752
if err != nil {
745753
log.Error("error upgrading client conn", "auth", GetAuthCtx(ctx), "req_id", GetReqID(ctx), "err", err)

0 commit comments

Comments
 (0)