Skip to content

Conversation

@rg0now
Copy link
Contributor

@rg0now rg0now commented Jan 3, 2026

Description

For client-initiated connection requests over a TCP allocation the outbound connections made by the server MUST be locally bound to the relay transport address for the allocation. In particular, RFC 6062 Section 5.2 contains the following text:

Otherwise, the server MUST initiate an outgoing TCP connection. The local endpoint is the relayed transport address associated with the allocation.

This PR adds a check for this.

Reference issue

See #512

@Sean-Der
Copy link
Member

Sean-Der commented Jan 3, 2026

🔥 thanks for this I’m terrible with spec compliance, very sloppy :(

We could just put this under a OS check maybe? For platforms that support REUSE_PORT apply it in dedicated file?

@rg0now
Copy link
Contributor Author

rg0now commented Jan 8, 2026

The test is included in #514. Closing this.

@rg0now rg0now closed this Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants