From 659b79746d223207ac4175407e65554234b37ece Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Thu, 25 Jan 2024 00:29:43 +0100 Subject: [PATCH] =?UTF-8?q?refactor:=20ipfs.dns=20=E2=86=92=20ipfs.resolve?= =?UTF-8?q?=20(#1302)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ipfs.dns is deprecated, and broken in Kubo 0.24: https://github.com/ipfs/kubo/pull/10212 --- add-on/src/lib/precache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/add-on/src/lib/precache.js b/add-on/src/lib/precache.js index 1e9b6f3b4..11d8837ec 100644 --- a/add-on/src/lib/precache.js +++ b/add-on/src/lib/precache.js @@ -15,7 +15,7 @@ export async function precache (ipfs, state) { try { let cid, name if (state.useLatestWebUI) { // resolve DNSLink - cid = await ipfs.dns('webui.ipfs.io', { recursive: true }) + cid = await ipfs.resolve('/ipns/webui.ipfs.io', { recursive: true }) name = 'latest webui from DNSLink at webui.ipfs.io' } else { // find out safelisted path behind /webui cid = new URL((await fetch(`${state.apiURLString}webui`)).url).pathname