Skip to content

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

relayPortSave

@WorkerThread abstract fun relayPortSave(relayPort:String):Unit (source)

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

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