Skip to content

Commit 7809e64

Browse files
committed
chore: auto relay configuration example with noise (#828)
1 parent f7e1426 commit 7809e64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/CONFIGURATION.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -445,13 +445,13 @@ const node = await Libp2p.create({
445445
const Libp2p = require('libp2p')
446446
const TCP = require('libp2p-tcp')
447447
const MPLEX = require('libp2p-mplex')
448-
const SECIO = require('libp2p-secio')
448+
const { NOISE } = require('libp2p-noise')
449449

450450
const node = await Libp2p.create({
451451
modules: {
452452
transport: [TCP],
453453
streamMuxer: [MPLEX],
454-
connEncryption: [SECIO]
454+
connEncryption: [NOISE]
455455
},
456456
config: {
457457
relay: { // Circuit Relay options (this config is part of libp2p core configurations)

0 commit comments

Comments
 (0)