From bd7392728f7837f5da18b8de4bc621d96b0f8844 Mon Sep 17 00:00:00 2001 From: vyzo Date: Mon, 31 Jul 2017 21:51:20 +0300 Subject: [PATCH] fix competing address factories in host options integrate #3948 License: MIT Signed-off-by: vyzo --- core/core.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/core.go b/core/core.go index 1c68bb64cd4..7d758280c7f 100644 --- a/core/core.go +++ b/core/core.go @@ -793,9 +793,6 @@ func constructPeerHost(ctx context.Context, id peer.ID, ps pstore.Peerstore, bwr if !opts.DisableNatPortMap { hostOpts = append(hostOpts, p2pbhost.NATPortMap) } - if opts.AddrsFactory != nil { - hostOpts = append(hostOpts, opts.AddrsFactory) - } addrsFactory := opts.AddrsFactory if !opts.DisableRelay {