ipfs/ipfs-companion

"Copy shareable link" is broken for non-ICANN names

開放

#1,060 建立於 2022年2月23日

 (0 則留言) (0 個反應) (0 位負責人)JavaScript (364 個分叉)batch import
P2area/eth.linkeffort/hoursexp/novicehelp wantedkind/bug

倉庫指標

星標
 (1,992 顆星)
PR 合併指標
 (平均合併 53天 3小時) (30 天內合併 1 個 PR)

描述

Problem

  1. Open https://dweb.link/ipns/blog.almonit.eth
  2. Try to "Copy shareable link"
  3. Clipboard value is "https://blog.almonit.eth"

The .eth is non-ICANN name, which means it is not safe for sharing with third-party people.

Solution

  • The case above should copy https://dweb.link/ipns/blog.almonit.eth
  • Caveat: we should not special-case .eth, .crypto or any other specific TLD, as user should be able to use their own gateway with custom DoH resolvers that support arbitrary naming systems.
    • :point_right: Companion should ship with a list of ICANN TLDs, and for everything else copy subdomain gateway link

貢獻者指南