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

Add IPv6 support to TorLookupIP() in btcd/connmgr/tor.go #1227

Open
githorray opened this issue Jul 21, 2018 · 1 comment
Open

Add IPv6 support to TorLookupIP() in btcd/connmgr/tor.go #1227

githorray opened this issue Jul 21, 2018 · 1 comment

Comments

@githorray
Copy link

githorray commented Jul 21, 2018

func TorLookupIP(host, proxy string) ([]net.IP, error) {
Currently TorLookupIP() does not support IPv6 resolution. Tor now supports IPv6. This function is used in a project (https://github.com/lightningnetwork/lnd) that may at some point attempt to use TorLookupIP() for IPv6 resolution. This was last touched on in 2013. #38 #39

// TorLookupIP uses Tor to resolve DNS via the SOCKS extension they provide for
// resolution over the Tor network. Tor itself doesn't support ipv6 so this
// doesn't either.
func TorLookupIP(host, proxy string) ([]net.IP, error) {

tor-resolve supports both IPv4/IPv6 as an example: https://github.com/torproject/tor/blob/master/src/tools/tor-resolve.c

@tylerchambers
Copy link
Contributor

Is there a way to do this without running a minimal dns server in btcd?

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