Skip to content

Commit

Permalink
feat: enable relay by default (no hop)
Browse files Browse the repository at this point in the history
docs: update readme default relay
  • Loading branch information
jacobheun committed Oct 19, 2018
1 parent a95389a commit c0b8583
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test/config.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ describe('configuration', () => {
dht: false
},
relay: {
enabled: false
enabled: true
}
}
}
Expand Down

0 comments on commit c0b8583

Please sign in to comment.