Skip to content

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

dnsPortSave

@WorkerThread abstract fun dnsPortSave(dnsPort:String):Unit (source)

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

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