Being able to decide which local port should be used when opening a TCP socket is essential to do for example TCP hole punching. Please add this feature.
The text was updated successfully, but these errors were encountered:
I was going to add this myself, but if you can get a PR done before me that'd be great
Sorry, something went wrong.
I have very little experience in C. If you know the API better, you should do it, as it requires a bit editing.
net: add localPort to connect options
Expose localPort for binding to a specific port for outbound
If localAddress is not specified '0.0.0.0' is used for ip4 and '::'
for ip6 connections.
@tjfontaine did you just update it?
@50ndr33 I guess it is resolved now.
Successfully merging a pull request may close this issue.