Skip to content

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

transPortSave

@WorkerThread abstract fun transPortSave(transPort:String):Unit (source)

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

transPort - 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.transPort