()
| 176 | return client |
| 177 | } |
| 178 | export const closeTorClient = async () => { |
| 179 | if (client) { |
| 180 | await client.quit() |
| 181 | client = undefined |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | export const addOnion = async (port: number, host?: string): Promise<string> => { |
| 186 | let privateKey = null |