Skip to content

fix: Endpoint creation fails with empty listen address #1636

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

Merged
merged 2 commits into from
Jan 29, 2022

Conversation

simon-lemay-unity
Copy link
Contributor

@simon-lemay-unity simon-lemay-unity commented Jan 29, 2022

MTT-2296

Fix the issue where the server endpoint creation would fail in the adapter when the listen address was empty. It's okay for it to be empty, but when I had written this I had (naively) used null as the empty value. But Unity deserializes null string fields as string.Empty, not as null. The error is on me, I should have double-checked how Unity handles deserialization of string fields.

Changelog

com.unity.netcode.adapter.utp

  • Fixed: Fixed issue where the server NetworkEndPoint would fail to be created when 'Server Listen Address' is empty.

Testing and Documentation

  • No tests have been added.
  • No documentation changes or additions were necessary.

@0xFA11 0xFA11 merged commit c17f5b8 into develop Jan 29, 2022
@0xFA11 0xFA11 deleted the fix/empty-listen-address branch January 29, 2022 17:05
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