MCPcopy Create free account
hub / github.com/cameri/nostream / createTorConfig

Function createTorConfig

src/tor/client.ts:15–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13}
14
15export const createTorConfig = (): TorConfig => {
16 return {
17 host: process.env.TOR_HOST,
18 port: process.env.TOR_CONTROL_PORT ? Number(process.env.TOR_CONTROL_PORT) : 9051,
19 password: process.env.TOR_PASSWORD,
20 }
21}
22
23type OnionResult = { ServiceID?: string; PrivateKey?: string }
24

Callers 2

onion.spec.tsFile · 0.90
getTorClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected