From 5df9ac22562b9175fd1723104bd015c825cb57fc Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 10 Jan 2024 11:21:07 -0500 Subject: [PATCH] fix: need to add peer to wg --- service/http.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/service/http.go b/service/http.go index 6214ae1..e2e50ed 100644 --- a/service/http.go +++ b/service/http.go @@ -69,6 +69,9 @@ func (h *HTTPImpl) p2pHandler(ctx jape.Context) { } return } + + h.Node().ConnectionTracker().Add(1) + go func() { err := h.node.Services().P2P().OnNewPeer(peer, false) if err != nil {