Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: allowing join with disabled challlenge
Browse files Browse the repository at this point in the history
  • Loading branch information
pgte committed Nov 30, 2017
1 parent 633a4b6 commit 6ccc208
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/core/runtime/libp2p-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ class Node extends libp2p {
constructor (peerInfo, peerBook, options) {
options = options || {}
const wrtcstar = new WebRTCStar()
const wsstar = new WebSocketStar({id: peerInfo.id})
const wsstar = new WebSocketStar({
id: peerInfo.id,
allowJoinWithDisabledChallenge: true
})

const modules = {
transport: [new WS(), wrtcstar, wsstar],
Expand Down
5 changes: 4 additions & 1 deletion src/core/runtime/libp2p-nodejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ const libp2p = require('libp2p')
class Node extends libp2p {
constructor (peerInfo, peerBook, options) {
options = options || {}
const wsstar = new WebSocketStar({id: peerInfo.id})
const wsstar = new WebSocketStar({
id: peerInfo.id,
allowJoinWithDisabledChallenge: true
})

const modules = {
transport: [new TCP(), new WS(), wsstar],
Expand Down

0 comments on commit 6ccc208

Please sign in to comment.