diff --git a/src/noise/mod.rs b/src/noise/mod.rs index c2e70027..bae1242e 100644 --- a/src/noise/mod.rs +++ b/src/noise/mod.rs @@ -599,6 +599,10 @@ impl Tunn { (time, tx_bytes, rx_bytes, loss, rtt) } + + pub fn is_expired(&self) -> bool { + self.handshake.lock().is_expired() + } } #[inline(always)]