Trans

A DSL builder scope for TorOption.__TransPort and TorOption.TransPort.

NOTE: This builder scope is only available for unix-like hosts. UnsupportedOperationException may be thrown when attempting to instantiate it.

Properties

Link copied to clipboard

The TorOption being configured for this BuilderScope.

Functions

Link copied to clipboard
open override fun auto(): BuilderScopePort.Trans

Sets the argument to auto, indicating that tor should pick a port value for this TorOption.

Link copied to clipboard
open override fun disable(): BuilderScopePort.Trans

Sets the argument to 0, indicating that tor will not utilize this TorOption.

Link copied to clipboard

Adds isolation flags to the TorSetting.LineItem.optionals of this builder result.

Link copied to clipboard
open override fun port(value: Port.Ephemeral): BuilderScopePort.Trans

Sets the argument to the specified port.

Link copied to clipboard
open override fun reassignable(allow: Boolean): BuilderScopePort.Trans

In the event a configured Port is unavailable on the host device, tor will fail to start.