From 7999fab25c5172207ee41e38732f4923565ff6b6 Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Fri, 30 Oct 2026 04:43:59 +0400 Subject: Validate controller diagnostics, reboot protection, and terminal authentication --- src/linux/mod.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/linux') 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::start(connection, duration).await + async fn probe( + &mut self, + connection: &Trojan, + duration: u64, + ) -> Result> { + Ok(Box::new(xray::Probe::start(connection, duration).await?)) } async fn disable(&mut self) -> Result<()> { xray::systemctl(&["stop", "roentgen-xray.service"]).await?; -- cgit v1.2.3