Skip to content

Commit

Permalink
fix: ipfs.dns → ipfs.resolve
Browse files Browse the repository at this point in the history
ipfs.dns is deprecated, and broken in Kubo 0.24:
ipfs/kubo#10212
  • Loading branch information
lidel authored Nov 8, 2023
1 parent 89901ef commit 9adfe5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion add-on/src/lib/precache.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('webui.ipfs.io', { recursive: true })
name = 'latest webui from DNSLink at webui.ipfs.io'
} else { // find out safelisted path behind <api-port>/webui
cid = new URL((await fetch(`${state.apiURLString}webui`)).url).pathname
Expand Down

0 comments on commit 9adfe5c

Please sign in to comment.