Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
fix: EnableHolePunching enabled by default
Browse files Browse the repository at this point in the history
This fixes interop tests when Swarm.EnableHolePunching in go-ipfs is
enabled by default.

Ref. ipfs/kubo#8748
  • Loading branch information
lidel committed Apr 19, 2022
1 parent 3e07e24 commit d138441
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
13 changes: 7 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
"wherearewe": "^1.0.0"
},
"devDependencies": {
"go-ipfs": "^0.11.0",
"go-ipfs": "^0.12.2",
"ipfs": "^0.61.0",
"ipfs-http-client": "^55.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup-libp2p-relay-daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async function getDownloadURL (version, platform, arch, distUrl) {
}

if (!data.platforms[platform].archs[arch]) {
throw new Error(`No binary available for arch '${arch}'`)
throw new Error(`No binary available for platform '${platform}' and arch '${arch}'`)
}

const link = data.platforms[platform].archs[arch].link
Expand Down
2 changes: 2 additions & 0 deletions test/utils/circuit.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export async function createGo (addrs, factory, relay) {
Swarm: addrs
},
Swarm: {
EnableHolePunching: false,
// go uses circuit v2
RelayClient: {
Enabled: true,
Expand Down Expand Up @@ -130,6 +131,7 @@ export function createGoRelay (addrs, factory) {
Swarm: addrs
},
Swarm: {
EnableHolePunching: false,
// go uses circuit v2
RelayClient: {
Enabled: false
Expand Down

0 comments on commit d138441

Please sign in to comment.