Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: normalize catch-all listeners to loopback #2287

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

lidel
Copy link
Member

@lidel lidel commented Oct 31, 2024

Closes #1821

@SgtPooki
Copy link
Member

SgtPooki commented Nov 1, 2024

@lidel FYI the fleek build is caused by different deps not compatible with node 22, that should be fixed by #2283

Comment on lines +94 to +98
const address = (Array.isArray(config.Addresses[name])
? config.Addresses[name][0]
: config.Addresses[name]
: config.Addresses[name])
.replace(/\/0\.0\.0\.0\//, '/127.0.0.1/') // fix for https://github.com/ipfs/ipfs-webui/issues/1821
.replace(/\/::\//, '/::1/')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we take this chance to more gracefully handle the array of addresses if it exists? do we always want the first one, or do we want the local one if one is found?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in practice, virtually all users will have only one listener, but the field in Kubo can be either a string or list of strings, so I think its ok as-is (not worth extra time/code).

@lidel lidel mentioned this pull request Nov 6, 2024
1 task
@SgtPooki SgtPooki merged commit edf14c6 into main Nov 7, 2024
22 checks passed
@SgtPooki SgtPooki deleted the fix-catch-all-gateway-listener-download branch November 7, 2024 15:16
ipfs-gui-bot pushed a commit that referenced this pull request Nov 7, 2024
## [4.4.0](v4.3.3...v4.4.0) (2024-11-07)

 CID `bafybeibkirkltohusogcco46jcw7khtgjf5nwphuvufjssr5pvhsuol5uy`

 ---

### Features

* use [email protected] ([#2283](#2283)) ([437b8fe](437b8fe)), closes [#2259](#2259)

### Bug Fixes

* normalize catch-all listeners to loopback ([#2287](#2287)) ([edf14c6](edf14c6)), closes [#1821](#1821)
* remove iltorb dep, build for node v22.9.0 ([#2273](#2273)) ([9ba4559](9ba4559))

### Trivial Changes

* move enum.js to lib folder ([#2285](#2285)) ([682de0b](682de0b))
* pull new translations ([#2279](#2279)) ([8205d12](8205d12))
@ipfs-gui-bot
Copy link
Collaborator

🎉 This PR is included in version 4.4.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Download Broken - Tries To Use IPFS gateway at 0.0.0.0:8080
3 participants