Closed stv0g closed 1 year ago
Patch coverage: 70.11
% and project coverage change: -39.95
:warning:
Comparison is base (
23bfc11
) 98.16% compared to head (73f2585
) 58.21%.:exclamation: Current head 73f2585 differs from pull request most recent head 8c40294. Consider uploading reports for the commit 8c40294 to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
This change currently breaks the API of the module. As we are still with v0, I dont think this is a huge deal. The breaking changes are also really minor..
This PR moves the URL type from the pion/ice module to pion/stun and renames it to URI. Hence this module gains full support for RFC7064 and RFC7065 (see #65).
The PR also adds a new function
stun.DialURI(u *stun.URI, cfg *stun.DialConfig)
which create the underlying connection for the client for you based on the URI Scheme and transport protocol. Hence it can also use thedtls
andtls
modules to establish an encrypted connection.Currently, the connection establishment is done by hand in various places:
This is also related to https://github.com/pion/stun/issues/35#issuecomment-1315361580
Furthermore, we now fully support passing a custom
transport.Net
for testing which was previously not supported for TLS / DTLS connections.