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

Fixed stream_ip resolution for kubernetes users #516

Conversation

robbert229
Copy link
Contributor

@robbert229 robbert229 commented Jun 25, 2022

This PR implements the recommendation given in #500 where the stream_ip is resolved from the internal url. In the case where the stream_ip is not resolvable from the internal url we fall back to hass.config.api.local_ip. I tested this out and it works with both hostname based internal_urls and ip based internal_urls.

IP Based

image

Hostname Based

image

@marcelveldt
Copy link
Member

Thanks for this and ignore my previous comment. Did not yet had my coffee in the morning ;-)

@marcelveldt marcelveldt changed the base branch from dev to main June 25, 2022 06:49
Copy link
Member

@marcelveldt marcelveldt left a comment

Choose a reason for hiding this comment

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

Except for the very small lint thingie it is great!

custom_components/mass/__init__.py Outdated Show resolved Hide resolved
Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>
@marcelveldt marcelveldt enabled auto-merge (squash) June 25, 2022 07:05
@marcelveldt marcelveldt merged commit 3ebec38 into music-assistant:main Jun 25, 2022
Copy link
Member

@marcelveldt marcelveldt left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@robbert229 robbert229 deleted the feature/add-stream-ip-from-internal-url branch June 25, 2022 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants