Skip to content

Commit

Permalink
refactor: ipfs.dns → ipfs.resolve (#1302)
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 Jan 24, 2024
1 parent 6f17967 commit 659b797
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('/ipns/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 659b797

Please sign in to comment.