mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-21 23:29:52 +01:00
Use different Tor ports for regular and debug builds
This commit is contained in:
@@ -155,7 +155,12 @@ public class AppModule {
|
|||||||
@Provides
|
@Provides
|
||||||
@Singleton
|
@Singleton
|
||||||
TorPorts provideTorPorts() {
|
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
|
@Provides
|
||||||
|
|||||||
Reference in New Issue
Block a user