Skip to content

Commit

Permalink
fix competing address factories in host options
Browse files Browse the repository at this point in the history
integrate #3948

License: MIT
Signed-off-by: vyzo <[email protected]>
  • Loading branch information
vyzo committed Aug 16, 2017
1 parent 16247cb commit 4f39962
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -816,9 +816,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 {
Expand Down

0 comments on commit 4f39962

Please sign in to comment.