Use different Tor ports for regular and debug builds

This commit is contained in:
Sebastian Kürten
2021-10-16 14:40:40 +02:00
parent d4656df384
commit bf091ef854

View File

@@ -155,7 +155,12 @@ public class AppModule {
@Provides
@Singleton
TorPorts provideTorPorts() {
return new TorPortsImpl(DEFAULT_SOCKS_PORT, DEFAULT_CONTROL_PORT);
if (!IS_DEBUG_BUILD) {
return new TorPortsImpl(DEFAULT_SOCKS_PORT, DEFAULT_CONTROL_PORT);
} else {
return new TorPortsImpl(DEFAULT_SOCKS_PORT + 2,
DEFAULT_CONTROL_PORT + 2);
}
}
@Provides