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

Commit c633d08

Browse files
committed
fix: do not spawn go nodes with webrtc swarm addresses
1 parent b999515 commit c633d08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/swarm/peers.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ module.exports = (common, options) => {
101101
// TODO: Change to port 0, needs: https://github.com/ipfs/interface-ipfs-core/issues/152
102102
let addresses
103103

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

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

0 commit comments

Comments
 (0)