Commit 423bf809 authored by zeroleak's avatar zeroleak
Browse files

fix Tor problems (Nodl and other platforms)

parent d09765a3
......@@ -45,8 +45,8 @@ public class JavaTorSettings extends DefaultSettings {
@Override
public boolean hasSafeSocks() {
// prevent DNS leaks
return true;
// remote DNS resolving is not supported by Java
return false;
}
@Override
......
......@@ -178,9 +178,7 @@ public class TorOnionProxyInstance implements JavaTorConnexion {
private CliProxy getTorSocksOrNull() {
if (torSocks == null) {
try {
if (log.isDebugEnabled()) {
log.debug("Looking for TorSocks...");
}
log.info("Waiting for TorSocks...");
int socksPort = onionProxyManager.getIPv4LocalHostSocksPort();
torSocks = new CliProxy(CliProxyProtocol.SOCKS, "127.0.0.1", socksPort);
log.info("TorSocks started: " + torSocks);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment