build: update to version of neutrino w/ BIP 155 support

Fixes #4973
This commit is contained in:
Olaoluwa Osuntokun
2022-04-27 11:01:16 -07:00
parent 54adc6996b
commit 9ec26325b5
5 changed files with 16 additions and 46 deletions

View File

@@ -101,7 +101,7 @@ func (p *ProxyNet) Dial(network, address string,
timeout time.Duration) (net.Conn, error) {
switch network {
case "tcp", "tcp4", "tcp6":
case "tcp", "tcp4", "tcp6", "onion":
default:
return nil, errors.New("cannot dial non-tcp network via Tor")
}
@@ -132,7 +132,7 @@ func (p *ProxyNet) LookupSRV(service, proto,
// addresses over Tor.
func (p *ProxyNet) ResolveTCPAddr(network, address string) (*net.TCPAddr, error) {
switch network {
case "tcp", "tcp4", "tcp6":
case "tcp", "tcp4", "tcp6", "onion":
default:
return nil, errors.New("cannot dial non-tcp network via Tor")
}