From 2a6c661b494e3bda09695306b7926038a75a5f14 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 10 Mar 2024 08:55:55 -0400 Subject: [PATCH] refactor: set the ip if we have a forwarded address --- service/default/http.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/service/default/http.go b/service/default/http.go index 60cebea..b44ac26 100644 --- a/service/default/http.go +++ b/service/default/http.go @@ -125,6 +125,10 @@ func (h *HTTPServiceDefault) p2pHandler(ctx jape.Context) { return } + if ip != nil { + peer.SetIP(ip) + } + h.Services().P2P().ConnectionTracker().Add(1) go func() {