mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-07 14:42:51 -04:00
fix error fetching prices with --socks5ProxyXmrAddress config (#1658)
This commit is contained in:
parent
51fc4d0c41
commit
d7be2885bd
1 changed files with 3 additions and 1 deletions
|
@ -95,7 +95,9 @@ public class Socks5ProxyProvider {
|
||||||
String[] tokens = socks5ProxyAddress.split(":");
|
String[] tokens = socks5ProxyAddress.split(":");
|
||||||
if (tokens.length == 2) {
|
if (tokens.length == 2) {
|
||||||
try {
|
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) {
|
} catch (UnknownHostException e) {
|
||||||
log.error(ExceptionUtils.getStackTrace(e));
|
log.error(ExceptionUtils.getStackTrace(e));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue