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

voipchat: allow configuring server bind address from cli arguments #109

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

madebr
Copy link
Contributor

@madebr madebr commented Oct 23, 2024

This allows you to bind the voipchat server to 127.0.0.1 or ::1.

This change is motivated by the following observations of current voipchat:
When running voipchat --server, it was unclear to what socket the server was bound to.
Also, the following combination failed for me:
server command: ./voipchat --server
clients command: ./voipchat localhost

Only after changing the client command to ./voipchat 127.0.0.1 could I get working voip.

This pr explicitly selects a binding address for the server, so it will never pass NULL to SDLNet_CreateDatagramSocket when creating a server.

Perhaps #85 is related.

@madebr madebr force-pushed the server-bind-address-from-arguments branch from d755aca to 8706803 Compare October 24, 2024 00:02
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.

1 participant