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

Commit aeb63eb

Browse files
authored
Merge pull request thaliproject#142 from sisbell/bug-32501a
Bug 32501: Add hasDormantCanceledByStartup to TOPL TorSettings Interface
2 parents ae478da + e653904 commit aeb63eb

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
@@ -197,6 +197,19 @@ public TorConfigBuilder dontUseBridges() {
197197
return this;
198198
}
199199

200+
public TorConfigBuilder dormantCanceledByStartup() {
201+
buffer.append("DormantCanceledByStartup 1\n");
202+
return this;
203+
}
204+
205+
@SettingsConfig
206+
public TorConfigBuilder dormantCanceledByStartupFromSettings() {
207+
if (settings.hasDormantCanceledByStartup()) {
208+
dormantCanceledByStartup();
209+
}
210+
return this;
211+
}
212+
200213
public TorConfigBuilder entryNodes(String entryNodes) {
201214
if (!isNullOrEmpty(entryNodes))
202215
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)