Skip to content

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

socksPortSave

@WorkerThread abstract fun socksPortSave(socksPort:String):Unit (source)

Saves the value for socksPort 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

socksPort - A String value of 0, auto, or number between 1024 and 65535

Exceptions

IllegalArgumentException - if the value is not 0, auto, or between 1024 and 65535

See Also

TorSettings.socksPort