Skip to content
This repository was archived by the owner on Dec 18, 2022. It is now read-only.

Commit e653904

Browse files
committed
Bug 32501: Add hasDormantCanceledByStartup to TOPL TorSettings Interface
TOPL fixes thaliproject#135
1 parent a720e25 commit e653904

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

universal/src/main/java/com/msopentech/thali/toronionproxy/DefaultSettings.java

+5
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ public boolean hasDebugLogs() {
128128
return false;
129129
}
130130

131+
@Override
132+
public boolean hasDormantCanceledByStartup() {
133+
return false;
134+
}
135+
131136
@Override
132137
public boolean hasIsolationAddressFlagForTunnel() {
133138
return false;

universal/src/main/java/com/msopentech/thali/toronionproxy/TorConfigBuilder.java

+13
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,19 @@ public TorConfigBuilder dontUseBridges() {
190190
return this;
191191
}
192192

193+
public TorConfigBuilder dormantCanceledByStartup() {
194+
buffer.append("DormantCanceledByStartup 1\n");
195+
return this;
196+
}
197+
198+
@SettingsConfig
199+
public TorConfigBuilder dormantCanceledByStartupFromSettings() {
200+
if (settings.hasDormantCanceledByStartup()) {
201+
dormantCanceledByStartup();
202+
}
203+
return this;
204+
}
205+
193206
public TorConfigBuilder entryNodes(String entryNodes) {
194207
if (!isNullOrEmpty(entryNodes))
195208
buffer.append("EntryNodes ").append(entryNodes).append('\n');

universal/src/main/java/com/msopentech/thali/toronionproxy/TorSettings.java

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ public interface TorSettings {
5454

5555
boolean hasDebugLogs();
5656

57+
boolean hasDormantCanceledByStartup();
58+
5759
boolean hasIsolationAddressFlagForTunnel();
5860

5961
boolean hasOpenProxyOnAllInterfaces();

0 commit comments

Comments
 (0)