fix error fetching prices with --socks5ProxyXmrAddress config

This commit is contained in:
woodser 2025-03-19 08:38:00 -04:00
parent 51fc4d0c41
commit 09a94c2b12
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF

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