feat: enable relay by default (no hop) (#254)

docs: update readme default relay
This commit is contained in:
Jacob Heun 2018-10-19 16:31:40 +02:00 committed by GitHub
parent a95389a28e
commit 686379efb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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)

View File

@ -92,7 +92,7 @@ describe('configuration', () => {
dht: false
},
relay: {
enabled: false
enabled: true
}
}
}