Closed cannium closed 5 years ago
OptActive is an option to allow relays to actively dial target hosts. It's not used in ipfs currently, because it has security implications, but it may be useful in some network topologies.
I recall previously /p2p-circuit/p2p/xxx
could use a random relay node, is it related to OptActive
?
No, this is enabled with OptDiscovery
.
I can see
OptDiscovery
andOptHop
are set ingo-ipfs
, but their meanings are ambiguous to me, and the configcfg.Swarm.DisableRelay
seems not very Orthogonal. Also,OptActive
seems never used, but there's an error related: https://github.com/libp2p/go-libp2p-circuit/blob/f83937ed3384bb289ba39ee0c4f428f26013390a/relay.go#L291-L294 Could someone kindly explain the intentions of these options?