@cryptotaxi247 / kubo / commits / e40e5699f

use a routedHost in the core node constructor

Jeromy committed Feb 14, 2015 at 06:54 UTC e40e5699f90a960f921e4edb2c7d59b482e4b5fa
1 file changed +3
core/core.go
+3
@@ -21,6 +21,7 @@ import (
21 ic "github.com/jbenet/go-ipfs/p2p/crypto"
22 p2phost "github.com/jbenet/go-ipfs/p2p/host"
23 p2pbhost "github.com/jbenet/go-ipfs/p2p/host/basic"
24 + rhost "github.com/jbenet/go-ipfs/p2p/host/routed"
25 swarm "github.com/jbenet/go-ipfs/p2p/net/swarm"
26 addrutil "github.com/jbenet/go-ipfs/p2p/net/swarm/addr"
27 peer "github.com/jbenet/go-ipfs/p2p/peer"
@@ -236,6 +237,8 @@ func (n *IpfsNode) startOnlineServices(ctx context.Context, routingOption Routin
237 return err
238 }
239
240 + n.PeerHost = rhost.Wrap(peerhost, n.Routing)
241 +
242 // Ok, now we're ready to listen.
243 if err := startListening(ctx, n.PeerHost, n.Repo.Config()); err != nil {
244 return debugerror.Wrap(err)