From df68043968af92ad7b09e80a131afc0958098d15 Mon Sep 17 00:00:00 2001 From: Godefroy Ponsinet Date: Fri, 8 Mar 2019 16:02:07 +0100 Subject: [PATCH] fix(network): relay add opt discovery to add known relay host Signed-off-by: Godefroy Ponsinet --- core/network/config/config.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/network/config/config.go b/core/network/config/config.go index cda2a72a4e..6b65879bed 100644 --- a/core/network/config/config.go +++ b/core/network/config/config.go @@ -118,11 +118,10 @@ func (cfg *Config) Apply(ctx context.Context, opts ...Option) error { } // relay - libp2pOpts = append(libp2pOpts, libp2p.EnableAutoRelay()) if cfg.HOP { libp2pOpts = append(libp2pOpts, libp2p.EnableRelay(circuit.OptActive, circuit.OptHop)) } else { - libp2pOpts = append(libp2pOpts, libp2p.EnableRelay(circuit.OptActive)) + libp2pOpts = append(libp2pOpts, libp2p.EnableRelay(circuit.OptActive, circuit.OptDiscovery)) } // private network