mirror of
https://github.com/wownero/i2p-zero.git
synced 2026-10-21 09:08:38 +02:00
Store server tunnel keys / read tunnel keys from a specified directory when creating a tunnel with tunnelcontrol
Use .i2p-zero in the user's home directory as the i2p config dir.
This commit is contained in:
@@ -36,8 +36,9 @@ public class TunnelControl implements Runnable {
|
||||
this.router = router;
|
||||
tunnelControlTempDir.delete();
|
||||
tunnelControlTempDir.mkdir();
|
||||
|
||||
this.tunnelControlTempDir = tunnelControlTempDir;
|
||||
this.tunnelControlTempDir.deleteOnExit();
|
||||
Runtime.getRuntime().addShutdownHook(new Thread(()->this.tunnelControlTempDir.delete()));
|
||||
}
|
||||
|
||||
public interface Tunnel {
|
||||
|
||||
Reference in New Issue
Block a user