Skip to content

topl-service-base / io.matthewnelson.topl_service_base / BaseServiceTorSettings / proxyTypeSave

proxyTypeSave

@WorkerThread abstract fun proxyTypeSave(proxyType:String):Unit (source)

Saves the value for proxyType to TorServicePrefs. If the value is the same as what is declared in defaultTorSettings, TorServicePrefs is queried to remove the setting if it exists.

Parameters

proxyType - A io.matthewnelson.topl_core_base.BaseConsts.ProxyType

Exceptions

IllegalArgumentException - if the value is not empty (disabled), HTTPS, or Socks5

See Also

io.matthewnelson.topl_core_base.BaseConsts.ProxyType

TorSettings.proxyType