-
Notifications
You must be signed in to change notification settings - Fork 35
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
Protocol not available (os error 92) when using IPv4 #63
Comments
A new release has been just published (really a few seconds ago :) ): https://github.com/BiagioFesta/wtransport/releases/tag/0.1.5 Can you please try with the latest release? Please also note that the API has been slightly changed (also thanks to your suggestions), so now there are 2 methods if you need to bind a "custom" address:
Please let me know if the latest version fixes the issue and if you have any feedback on the new API |
Now compilation fails, because in the closure Certificate::load(&certfile, &keyfile)? may return an error of type Endpoint::server(config) may return an error of type |
Anyway, FYI: the issue was because of old API was allowing specifying
fails when The new API is more robust and does not allow "bad" combo at compile time |
Yeah that was also an improvement in the API. Configuration builder had an That required another error specification tho (which is not i/o, but validation on content). In order to solve the compilation error is pretty easy I guess. It depends on your application, but, for instance, you can map the error |
Awesome, the new version works well, great job😀 |
I'm trying to implement the code sample described in #50 , so I'm using this code:
host
is set to "localhost" andport
is set to 4433.The IPv6 part binds fine, but the IPv4 part errors out with:
I tried changing the IPV6ONLY flag from
false
totrue
, but it didn't change anything.I also tried to set
host
to::1
, and it works fine by binding only to IPv6 localhost, an I also tried to sethost
to127.0.0.1
, and it errors out with the same error.My OS is Fedora 38 x86_64, if that could help.
btw. IPv4 localhost UDP binding is supported on my OS, the output of
ss -ulpen
also reports:Which has noting to do with wtransport, but shows that it's possible to bind an UDP socket to 127.0.0.1 on my system
The text was updated successfully, but these errors were encountered: