Skip to content
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

wss client bind local port #3150

Open
zzblydia opened this issue May 23, 2024 · 0 comments
Open

wss client bind local port #3150

zzblydia opened this issue May 23, 2024 · 0 comments

Comments

@zzblydia
Copy link
Contributor

Hi team,
I am using libwebsockets-v4.3.2 as wss client to connect servers now.
There was an issue when client attempted to bind the specific ip and port within the range allowed by the Linux firewall before connecting.

I notice that there is a iface parameter in the lws_client_connect_info struct to bind a specific interface or IP in source code.
But I observe that the port is set to 0 when lws_socket_bind is called in the function lws_client_connect_3_connect, which means the client will pick an ephemeral port.

I was surprised to find out that the feature (source port setting) has already been implemented on the main branch since 2022.
so I would like to inquire if there are any plans to release this feature later?

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

No branches or pull requests

1 participant