Skip to content

Fix netcode server to update address property when letting the system assign a port.#94

Merged
gafferongames merged 2 commits intomas-bandwidth:masterfrom
NormalVR:bugfix/system-assigned-port
Mar 24, 2020
Merged

Fix netcode server to update address property when letting the system assign a port.#94
gafferongames merged 2 commits intomas-bandwidth:masterfrom
NormalVR:bugfix/system-assigned-port

Conversation

@maxweisel
Copy link
Contributor

At the moment, if you let the system assign a port (by passing port 0), the server->address property will have a port of 0 even after the system has assigned one. This means all incoming connection requests will be rejected because the port does not match.

This PR updates the server->address property to include the system assigned port once the socket is created. Fixes issue #93.

… assign a port. Update client_server.c example to use system-assigned port.
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