Feature/tor health checks (#426)

* wip

* wraps up core tor health check feature, still need to fix the boundaries with the rest of embassyd

* need to please borrow checker

* please the borrow checker

* wire it in

* finishes the feature

* Apply suggestions from code review

* fixes tor restart functionality

* makes tor replacement more resilient, adds embassyd service in init and replace
This commit is contained in:
Keagan McClelland
2021-08-26 17:30:22 -06:00
committed by Aiden McClelland
parent 89246b4dd4
commit 982ebc01a4
11 changed files with 358 additions and 46 deletions

View File

@@ -82,6 +82,8 @@ impl RpcContext {
let docker = Docker::connect_with_unix_defaults()?;
let net_controller = Arc::new(
NetController::init(
([127, 0, 0, 1], 80).into(),
todo!("Grab Key from Database, Generate if it doesn't exist"),
base.tor_control
.unwrap_or(SocketAddr::from(([127, 0, 0, 1], 9051))),
)