fix error fetching prices with --socks5ProxyXmrAddress config ()

This commit is contained in:
woodser 2025-03-20 08:00:23 -04:00 committed by GitHub
parent 51fc4d0c41
commit d7be2885bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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));
}