Skip to content

feat: IPv6 support in UnityTransport [MTT-4801] #2232

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 5 commits into from
Oct 4, 2022

Conversation

simon-lemay-unity
Copy link
Contributor

UTP fully supports IPv6, but this support was not available in the adapter because we only tried parsing user-provided IP addresses as IPv4. Supporting IPv6 was as simple as modifying the endpoint parsing code to also check for IPv6 addresses. The rest of the code changes is mostly adapting the tests to also test IPv6.

Note that when using Relay, only IPv4 is supported. AFAIK the Relay SDK only hands out IPv4 addresses so that's not really an issue for now. In any case, once I move the adapter to the new APIs provided by UTP 1.3 and 2.0 for Relay integration, IPv6 support will be taken care of transparently.

Changelog

  • Added: IPv6 is now supported for direct connections when using UnityTransport.

Testing and Documentation

  • Includes unit tests.
  • Includes integration tests.
  • No documentation changes or additions were necessary.

@simon-lemay-unity simon-lemay-unity requested review from a team as code owners October 3, 2022 20:18
@simon-lemay-unity simon-lemay-unity enabled auto-merge (squash) October 4, 2022 14:28
@simon-lemay-unity simon-lemay-unity merged commit 41ef88b into develop Oct 4, 2022
@simon-lemay-unity simon-lemay-unity deleted the feat/ipv6-support branch October 4, 2022 20:08
jakobbbb pushed a commit to GooseGirlGames/com.unity.netcode.gameobjects that referenced this pull request Feb 22, 2023
)

* feat: IPv6 support in UnityTransport [MTT-4801]

* Add PR number to CHANGELOG entry

* Make standards happy
felippeduran pushed a commit to felippeduran/com.unity.netcode.gameobjects that referenced this pull request Mar 14, 2023
)

* feat: IPv6 support in UnityTransport [MTT-4801]

* Add PR number to CHANGELOG entry

* Make standards happy
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.

5 participants