libp2p / go-libp2p-examples

Example libp2p applications
MIT License
338 stars 145 forks source link

Update to relay example #49

Closed mvid closed 5 years ago

mvid commented 5 years ago

Minor update to the relay example:

  1. Fixed a bug, since we did not enable Opt.Discovery the hosts would not connect
  2. Zeroed out the listen addrs to make explicit that the hosts were only connecting over p2p-circuit
bigs commented 5 years ago

@whyrusleeping yeah, we really need to get the docs on relay stuff up to snuff. essentially OptDiscovery enables passive discovery wherein connecting to a node that has circuit enabled will add it to a set of peers you can hop through.