1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- diff --git a/universal/src/main/java/com/msopentech/thali/toronionproxy/DefaultSettings.java b/universal/src/main/java/com/msopentech/thali/toronionproxy/DefaultSettings.java
- index 5f5adac..da6747f 100644
- --- a/universal/src/main/java/com/msopentech/thali/toronionproxy/DefaultSettings.java
- +++ b/universal/src/main/java/com/msopentech/thali/toronionproxy/DefaultSettings.java
- @@ -187,4 +187,9 @@ public class DefaultSettings implements TorSettings {
- public boolean useSocks5() {
- return false;
- }
- +
- + @Override
- + public boolean hasDormantCanceledByStartup() {
- + return false;
- + }
- }
- diff --git a/universal/src/main/java/com/msopentech/thali/toronionproxy/TorConfigBuilder.java b/universal/src/main/java/com/msopentech/thali/toronionproxy/TorConfigBuilder.java
- index e324d9f..99e5693 100644
- --- a/universal/src/main/java/com/msopentech/thali/toronionproxy/TorConfigBuilder.java
- +++ b/universal/src/main/java/com/msopentech/thali/toronionproxy/TorConfigBuilder.java
- @@ -503,6 +503,16 @@ public final class TorConfigBuilder {
- return virtualAddressNetwork(settings.getVirtualAddressNetwork());
- }
-
- + public TorConfigBuilder dormantCanceledByStartup() {
- + buffer.append("DormantCanceledByStartup 1").append('\n');
- + return this;
- + }
- +
- + @SettingsConfig
- + public TorConfigBuilder domantCanceledByStartupFromSettings() {
- + return settings.hasDormantCanceledByStartup() ? dormantCanceledByStartup() : this;
- + }
- +
- /**
- * Adds bridges from a resource stream. This relies on the TorInstaller to know how to obtain this stream.
- * These entries may be type-specified like:
- diff --git a/universal/src/main/java/com/msopentech/thali/toronionproxy/TorSettings.java b/universal/src/main/java/com/msopentech/thali/toronionproxy/TorSettings.java
- index 2d515d1..43f01ef 100644
- --- a/universal/src/main/java/com/msopentech/thali/toronionproxy/TorSettings.java
- +++ b/universal/src/main/java/com/msopentech/thali/toronionproxy/TorSettings.java
- @@ -77,4 +77,6 @@ public interface TorSettings {
- String transPort();
-
- boolean useSocks5();
- +
- + boolean hasDormantCanceledByStartup();
- }
|