From a1bd15e7c2006d2489fd3d84bc9dd24312b04ba9 Mon Sep 17 00:00:00 2001 From: David Hill Date: Wed, 10 Jun 2015 09:56:25 -0400 Subject: [PATCH] Fix --onion. The configured onion proxy was not being used due to checking if the passed string had suffix '.onion', which never matched because the port number is part of the string. --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 63208b214..48e168bfd 100644 --- a/config.go +++ b/config.go @@ -834,7 +834,7 @@ func loadConfig() (*config, []string, error) { // one was specified, but will otherwise use the normal dial function (which // could itself use a proxy or not). func btcdDial(network, address string) (net.Conn, error) { - if strings.HasSuffix(address, ".onion") { + if strings.Contains(address, ".onion:") { return cfg.oniondial(network, address) } return cfg.dial(network, address)