pub async fn run_socks_proxy<R: Runtime>(
runtime: R,
tor_client: TorClient<R>,
listen: Listen,
rpc_data: Option<(Arc<RpcMgr>, RpcStateSender)>,
) -> Result<()>
Expand description
Launch a SOCKS proxy to listen on a given localhost port, and run indefinitely.
Requires a runtime
to use for launching tasks and handling
timeouts, and a tor_client
to use in connecting over the Tor
network.