Skip to content

Commit d3ee7da

Browse files
committed
disable relay protocol
1 parent 50a27bd commit d3ee7da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

p2p/communication.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ func (c *Communication) startChannel(privKeyBytes []byte) error {
297297
libp2p.AddrsFactory(addressFactory),
298298
libp2p.ResourceManager(m),
299299
libp2p.ConnectionManager(cmgr),
300+
libp2p.DisableRelay(),
300301
)
301302
if err != nil {
302303
return fmt.Errorf("fail to create p2p host: %w", err)

0 commit comments

Comments
 (0)