Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
fix: do not spawn go nodes with webrtc swarm addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Feb 3, 2020
1 parent b999515 commit c633d08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/swarm/peers.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ module.exports = (common, options) => {
// TODO: Change to port 0, needs: https://github.com/ipfs/interface-ipfs-core/issues/152
let addresses

if (isBrowser) {
if (isBrowser && common.opts.type !== 'go') {
addresses = [
'/ip4/127.0.0.1/tcp/14578/ws/p2p-webrtc-star',
'/ip4/127.0.0.1/tcp/14579/ws/p2p-webrtc-star'
Expand All @@ -118,7 +118,7 @@ module.exports = (common, options) => {
}

const configA = getConfig(addresses)
const configB = getConfig(isBrowser ? [
const configB = getConfig(isBrowser && common.opts.type !== 'go' ? [
'/ip4/127.0.0.1/tcp/14578/ws/p2p-webrtc-star',
'/ip4/127.0.0.1/tcp/14579/ws/p2p-webrtc-star'
] : [
Expand Down

0 comments on commit c633d08

Please sign in to comment.