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

bind to IPv6 socket if connecting to IPv6 socket #37

Closed
mherrb opened this issue Oct 13, 2019 · 2 comments
Closed

bind to IPv6 socket if connecting to IPv6 socket #37

mherrb opened this issue Oct 13, 2019 · 2 comments

Comments

@mherrb
Copy link

mherrb commented Oct 13, 2019

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.

@jedisct1
Copy link
Member

It should be the case now. Thanks for suggesting this!

@mherrb
Copy link
Author

mherrb commented Oct 13, 2019

Thanks. Works as expected now!

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

2 participants