ipfs/ipfs-companion

Localhost URLs not redirected

開放

#926 建立於 2020年9月30日

 (2 則留言) (0 個反應) (0 位負責人)JavaScript (364 個分叉)batch import
P2effort/daysexp/experthelp wantedkind/bug

倉庫指標

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

描述

Describe the bug URLs pointing to localhost don't properly redirect when using an external IPFS node.

To Reproduce

  1. Configure IPFS companion to use an external node (e.g. http://192.168.0.100:5001)
  2. Navigate to http://localhost:8080/ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme and note it does NOT redirect.
  3. Navigate to http://gateway.ipfs.io/ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme and note that it DOES redirect to your external node.

Expected behavior All URLs get detected and redirected to specified node; when entering http://localhost:8080/ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme into the URL bar, it should replace and load CONFIGURED_EXTERNAL_NODE/ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme instead.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Brave
  • Version: 1.14

貢獻者指南