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

Add with_default_handle_and_ip_list_and_hostname #55

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

sy39ju
Copy link
Contributor

@sy39ju sy39ju commented Jun 20, 2024

On some platforms, the hostname is fixed, which causes hostname collisions.
In this case, the application must avoid collisions on its own or use a unique hostname. Otherwise, it will cause the Client to malfunction.

There is a way to update the system hostname with hostname::set, but this will affect other applications as well, and cannot be attempted by general applications without CAP_SYS_ADMIN privilege.

This patch adds an interface that can create a Responder with a hostname.

In some platforms, hostname is fixed so system doesn't gurantee hostname
conflict when the application uses system hostname. This could be the
platform bug but there is a case where the application wants to use specific
and unique hostname for their purpose.

This change add new function to spawn responder task with the application
specific hostname.
@willstott101
Copy link
Contributor

Thanks for the contribution!

We're definitely getting to the point where we should be using the builder pattern

@willstott101 willstott101 merged commit 424150f into librespot-org:main Jul 19, 2024
2 checks passed
willstott101 added a commit that referenced this pull request Aug 24, 2024
#51 Progress(?) adding Solaris support
#54 Windows link-local ipv6 broadcasting
#55 Add with_default_handle_and_ip_list_and_hostname
#58 Support ipv4 broadcasting on interfaces with multiple ipv4 addresses
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.

2 participants