Commit f82a5481 authored by zeroleak's avatar zeroleak
Browse files

fix jtorctl

parent d6b873d8
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
<dependency> <dependency>
<groupId>io.samourai.code.whirlpool</groupId> <groupId>io.samourai.code.whirlpool</groupId>
<artifactId>jtorctl</artifactId> <artifactId>jtorctl</artifactId>
<version>0.2-samourai</version> <version>0.2.1-samourai</version>
</dependency> </dependency>
<!-- test --> <!-- test -->
<dependency> <dependency>
......
...@@ -16,6 +16,7 @@ import java.util.Collection; ...@@ -16,6 +16,7 @@ import java.util.Collection;
import java.util.Map; import java.util.Map;
import java.util.Optional; import java.util.Optional;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;
import net.freehaven.tor.control.NullEventHandler;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.util.SocketUtils; import org.springframework.util.SocketUtils;
...@@ -38,6 +39,9 @@ public class TorOnionProxyInstance { ...@@ -38,6 +39,9 @@ public class TorOnionProxyInstance {
log.debug("new TorOnionProxyInstance: " + torConfig + " ; " + torSettings); log.debug("new TorOnionProxyInstance: " + torConfig + " ; " + torSettings);
} }
// hardlink to JTorCtl just to make sure it was successfully compiled
new NullEventHandler();
JavaOnionProxyContext context = new JavaOnionProxyContext(torConfig, torInstaller, torSettings); JavaOnionProxyContext context = new JavaOnionProxyContext(torConfig, torInstaller, torSettings);
onionProxyManager = new OnionProxyManager(context); onionProxyManager = new OnionProxyManager(context);
......
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