@cryptotaxi247 / kubo / commits / 4f3996264

fix competing address factories in host options

integrate #3948 License: MIT Signed-off-by: vyzo <vyzo@hackzen.org>

vyzo committed Jul 31, 2017 at 21:51 UTC 4f39962643d53f94041ef923e90233d088a2738c
1 file changed -3
core/core.go
-3
@@ -816,9 +816,6 @@ func constructPeerHost(ctx context.Context, id peer.ID, ps pstore.Peerstore, bwr
816 if !opts.DisableNatPortMap {
817 hostOpts = append(hostOpts, p2pbhost.NATPortMap)
818 }
819 - if opts.AddrsFactory != nil {
820 - hostOpts = append(hostOpts, opts.AddrsFactory)
821 - }
819
820 addrsFactory := opts.AddrsFactory
821 if !opts.DisableRelay {