Skip to content

Commit 1f6a210

Browse files
committed
feat: enable circuit relay transport
this should have been enabled by default but doesn't seem to have been
1 parent e366e6d commit 1f6a210

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

discv5/driver_crawler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ func newLibp2pHost(version string) (host.Host, error) {
297297
libp2p.Muxer(yamux.ID, yamux.DefaultTransport),
298298
libp2p.DisableMetrics(),
299299
libp2p.ConnectionManager(connmgr.NullConnMgr{}),
300+
libp2p.EnableRelay(), // enable the relay transport
300301
)
301302
if err != nil {
302303
return nil, fmt.Errorf("new libp2p host: %w", err)

libp2p/driver_crawler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,5 +203,6 @@ func newLibp2pHost(version string) (host.Host, error) {
203203
libp2p.UserAgent("nebula/"+version),
204204
libp2p.ConnectionManager(connmgr.NullConnMgr{}),
205205
libp2p.DisableMetrics(),
206+
libp2p.EnableRelay(), // enable the relay transport
206207
)
207208
}

0 commit comments

Comments
 (0)