mirror of
https://github.com/devgianlu/go-librespot.git
synced 2026-04-26 05:15:49 +03:00
[PR #109] [MERGED] fix: default API to localhost #213
Labels
No labels
bug
enhancement
pull-request
spotify-side
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-librespot#213
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/devgianlu/go-librespot/pull/109
Author: @aykevl
Created: 10/1/2024
Status: ✅ Merged
Merged: 10/2/2024
Merged by: @devgianlu
Base:
master← Head:fix-api-localhost📝 Commits (1)
30418bafix: default API to localhost📊 Changes
3 files changed (+3 additions, -1 deletions)
View changed files
📝
README.md(+1 -0)📝
cmd/daemon/main.go(+1 -0)📝
config_schema.json(+1 -1)📄 Description
The previous default was to bind to 0.0.0.0 and allow connections from anywhere. I think this is an insecure default, the default should be restricted.
To restore the previous behavior, use:
For example, I'm using the API from Home Assistant running on the same Raspberry Pi. There is no reason for the API to be exposed on my local network. And generally it's a good idea to have safe default values (and require users to opt-in to less safe options).
(Not sure whether this counts as a fix or a feature, but I guess it fixes potential unsafe configurations, so...)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.