refactor: set the ip if we have a forwarded address

This commit is contained in:
Derrick Hammer 2024-03-10 08:55:55 -04:00
parent fc31653050
commit 2a6c661b49
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -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() {