load os tor key from db

This commit is contained in:
Aiden McClelland
2021-08-31 11:44:08 -06:00
committed by Aiden McClelland
parent cdca5e1b67
commit 6093518e46
7 changed files with 58 additions and 12 deletions

View File

@@ -83,7 +83,7 @@ impl RpcContext {
let net_controller = Arc::new(
NetController::init(
([127, 0, 0, 1], 80).into(),
todo!("Grab Key from Database, Generate if it doesn't exist"),
crate::net::tor::os_key(&mut secret_store.acquire().await?).await?,
base.tor_control
.unwrap_or(SocketAddr::from(([127, 0, 0, 1], 9051))),
)