refactor: set the ip if we have a forwarded address
This commit is contained in:
parent
fc31653050
commit
2a6c661b49
|
@ -125,6 +125,10 @@ func (h *HTTPServiceDefault) p2pHandler(ctx jape.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ip != nil {
|
||||||
|
peer.SetIP(ip)
|
||||||
|
}
|
||||||
|
|
||||||
h.Services().P2P().ConnectionTracker().Add(1)
|
h.Services().P2P().ConnectionTracker().Add(1)
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
|
|
Loading…
Reference in New Issue