mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Use different Tor ports for regular and debug builds
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user