mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-03-26 17:19:04 +00:00
fix error fetching prices with --socks5ProxyXmrAddress config
This commit is contained in:
parent
51fc4d0c41
commit
09a94c2b12
1 changed files with 3 additions and 1 deletions
|
@ -95,7 +95,9 @@ public class Socks5ProxyProvider {
|
|||
String[] tokens = socks5ProxyAddress.split(":");
|
||||
if (tokens.length == 2) {
|
||||
try {
|
||||
return new Socks5Proxy(tokens[0], Integer.valueOf(tokens[1]));
|
||||
Socks5Proxy proxy = new Socks5Proxy(tokens[0], Integer.valueOf(tokens[1]));
|
||||
proxy.resolveAddrLocally(false);
|
||||
return proxy;
|
||||
} catch (UnknownHostException e) {
|
||||
log.error(ExceptionUtils.getStackTrace(e));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue