-
Notifications
You must be signed in to change notification settings - Fork 490
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
Conversation
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/') |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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).
k |
## [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))
🎉 This PR is included in version 4.4.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Closes #1821