FlagsBuilderSocks

Configure the desired TorOption with Socks Flags, as described in tor-man#OtherSocksPortFlags.

Configurability is as follows:

  • null: no action (the default).

  • true: add the flag if not present.

  • false: remove the flag if present.

e.g.

val setting = TorOption.__SocksPort.asSetting {
    auto()

    flagsSocks {
        PreferIPv6 = true
        OnionTrafficOnly = true
    }
    flagsSocks {
        // Remove what was just added
        OnionTrafficOnly = false
    }
}

println(setting.items.first().optionals)
// [PreferIPv6]

Properties

Link copied to clipboard
@JvmField
var CacheDNS: Boolean?
Link copied to clipboard
@JvmField
var CacheIPv4DNS: Boolean?
Link copied to clipboard
@JvmField
var CacheIPv6DNS: Boolean?
Link copied to clipboard
@JvmField
var IPv6Traffic: Boolean?
Link copied to clipboard
@JvmField
var NoDNSRequest: Boolean?
Link copied to clipboard
@JvmField
var NoIPv4Traffic: Boolean?
Link copied to clipboard
@JvmField
var NoOnionTraffic: Boolean?
Link copied to clipboard
@JvmField
var OnionTrafficOnly: Boolean?
Link copied to clipboard
@JvmField
var PreferIPv6: Boolean?
Link copied to clipboard
@JvmField
var PreferIPv6Automap: Boolean?
Link copied to clipboard
@JvmField
var PreferSOCKSNoAuth: Boolean?
Link copied to clipboard
@JvmField
var UseDNSCache: Boolean?
Link copied to clipboard
@JvmField
var UseIPv4Cache: Boolean?
Link copied to clipboard
@JvmField
var UseIPv6Cache: Boolean?