-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
bind to IPv6 socket if connecting to IPv6 socket #37
Comments
It should be the case now. Thanks for suggesting this! |
Thanks. Works as expected now! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I tried to use doh-proxy connecting to my unbound server on localhost:53.
./.cargo/bin/doh-proxy -u localhost:53
Unfortunatly this setup produces 500 internal server error on all queries.
As I'm running a dual-stack host, the -u argument resolves to [::1]:53.
Tracing the process shows that it is trying to talk to [::1]:53 from a socket bound to 0.0.0.0:0.
So using -b [::0]:0 fixes the proxy.
But I think that if using ipv6 for -u, one should switch to IPv6 for the default bind address too.
The text was updated successfully, but these errors were encountered: