use port instead of unix socket for internal tor control to avoid bug where unix socket path is too long

This commit is contained in:
Craig Raw 2023-08-30 10:39:52 +02:00
parent 73d2d3cbbc
commit 0bc1dd96ed

View file

@ -86,6 +86,10 @@ public class Tor {
dormantCanceledByStartup.set(TorConfig.Option.AorTorF.getTrue());
builder.put(dormantCanceledByStartup);
TorConfig.Setting.Ports.Control controlPort = new TorConfig.Setting.Ports.Control();
controlPort.set(TorConfig.Option.AorDorPort.Auto.INSTANCE);
builder.put(controlPort);
return builder.build();
}
};