diff options
| author | Andrew Guschin <guschin@altlinux.org> | 2026-10-30 04:43:59 +0400 |
|---|---|---|
| committer | Andrew Guschin <guschin@altlinux.org> | 2026-10-30 04:43:59 +0400 |
| commit | 7999fab25c5172207ee41e38732f4923565ff6b6 (patch) | |
| tree | 0e239d6ba65d4babfc0f1007ac350f6f4f9e73d1 /src/linux/mod.rs | |
| parent | fc3c1d51b1be9db6ba6ad286584fbc34bb305f38 (diff) | |
Validate controller diagnostics, reboot protection, and terminal authentication
Diffstat (limited to 'src/linux/mod.rs')
| -rw-r--r-- | src/linux/mod.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/linux/mod.rs b/src/linux/mod.rs index fd9c471..c6c10bd 100644 --- a/src/linux/mod.rs +++ b/src/linux/mod.rs @@ -104,8 +104,12 @@ impl Runtime for LinuxRuntime { } self.apply(connection, generation).await } - async fn probe(&mut self, connection: &Trojan, duration: u64) -> Result<xray::Probe> { - xray::Probe::start(connection, duration).await + async fn probe( + &mut self, + connection: &Trojan, + duration: u64, + ) -> Result<Box<dyn crate::runtime::ProbeSession>> { + Ok(Box::new(xray::Probe::start(connection, duration).await?)) } async fn disable(&mut self) -> Result<()> { xray::systemctl(&["stop", "roentgen-xray.service"]).await?; |