From c51618c444c8a5607005097df18a501f877c2a48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Boche=C5=84ski?= Date: Mon, 2 Feb 2026 13:33:42 +0100 Subject: [PATCH] jshttp: populate RemoteAddr in http.Request MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Piotr Bocheński --- internal/jshttp/request.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/jshttp/request.go b/internal/jshttp/request.go index cd752267..a0c77973 100644 --- a/internal/jshttp/request.go +++ b/internal/jshttp/request.go @@ -40,6 +40,7 @@ func ToRequest(req js.Value) (*http.Request, error) { ContentLength: contentLength, TransferEncoding: strings.Split(header.Get("Transfer-Encoding"), ","), Host: header.Get("Host"), + RemoteAddr: header.Get("Cf-Connecting-Ip"), }, nil }