-
Notifications
You must be signed in to change notification settings - Fork 280
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
Invalid socket address when using udp with host name #265
Comments
There is a special support for TCP with hostnames (it supports trying multiple resolved addresses and choosing the one that works). This support appeared relatively late in Websocat history. What shall |
That's a good point. I think one approach is to use a random address (usually both should work). Another approach is to add |
What if multiple addresses from the same family is returned? Shall the address be resolved once or periodically refreshed? |
For the first question, I think using the first one should be good for most cases and is easy to implement. (If any address doesn't work, it should be the responsibility of the server instead of this app) For the second question, I think either approach is good enough for most apps to work. |
When using
udp:
with a host name, it throws an error:However,
tcp
works as expected:The text was updated successfully, but these errors were encountered: