ipfs/ipfs-companion

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

Open

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

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)JavaScript (1,992 star) (364 fork)batch import
P2area/eth.linkeffort/hoursexp/novicehelp wantedkind/bug

描述

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

貢獻者指南