From 7809e6444e9ea605071a080b35356966a921b677 Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Wed, 9 Dec 2020 16:27:42 +0100 Subject: [PATCH] chore: auto relay configuration example with noise (#828) --- doc/CONFIGURATION.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/CONFIGURATION.md b/doc/CONFIGURATION.md index 06cc8fae..79c20c87 100644 --- a/doc/CONFIGURATION.md +++ b/doc/CONFIGURATION.md @@ -445,13 +445,13 @@ const node = await Libp2p.create({ const Libp2p = require('libp2p') const TCP = require('libp2p-tcp') const MPLEX = require('libp2p-mplex') -const SECIO = require('libp2p-secio') +const { NOISE } = require('libp2p-noise') const node = await Libp2p.create({ modules: { transport: [TCP], streamMuxer: [MPLEX], - connEncryption: [SECIO] + connEncryption: [NOISE] }, config: { relay: { // Circuit Relay options (this config is part of libp2p core configurations)