From 686379efb0553d5d45fb178ee08212c8ad6e17c3 Mon Sep 17 00:00:00 2001 From: Jacob Heun Date: Fri, 19 Oct 2018 16:31:40 +0200 Subject: [PATCH] feat: enable relay by default (no hop) (#254) docs: update readme default relay --- README.md | 2 +- src/config.js | 2 +- test/config.spec.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cb940cd86e..3ba5808828 100644 --- a/README.md +++ b/README.md @@ -166,7 +166,7 @@ class Node extends libp2p { // .. other discovery module options. }, relay: { // Circuit Relay options - enabled: false, + enabled: true, hop: { enabled: false, active: false diff --git a/src/config.js b/src/config.js index ac95d1a7d2..989afcd1d1 100644 --- a/src/config.js +++ b/src/config.js @@ -24,7 +24,7 @@ const OptionsSchema = Joi.object({ config: Joi.object().keys({ peerDiscovery: Joi.object().allow(null), relay: Joi.object().keys({ - enabled: Joi.boolean().default(false), + enabled: Joi.boolean().default(true), hop: Joi.object().keys({ enabled: Joi.boolean().default(false), active: Joi.boolean().default(false) diff --git a/test/config.spec.js b/test/config.spec.js index 3b4c687dcd..14cf55c8c3 100644 --- a/test/config.spec.js +++ b/test/config.spec.js @@ -92,7 +92,7 @@ describe('configuration', () => { dht: false }, relay: { - enabled: false + enabled: true } } }