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 <vyzo@hackzen.org>
  • Loading branch information
vyzo committed Aug 1, 2017
1 parent ac2aa77 commit bd73927
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 @@ -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 {
Expand Down

0 comments on commit bd73927

Please sign in to comment.