From 293914e47b046f862608a1af91864b6b38336aa5 Mon Sep 17 00:00:00 2001 From: Mathias Hall-Andersen Date: Wed, 6 Nov 2019 13:50:38 +0100 Subject: Implement disable/enable timers --- src/wireguard/router/device.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/wireguard/router/device.rs') diff --git a/src/wireguard/router/device.rs b/src/wireguard/router/device.rs index a5028e1..b3f1787 100644 --- a/src/wireguard/router/device.rs +++ b/src/wireguard/router/device.rs @@ -27,13 +27,11 @@ use super::route::get_route; use super::super::{bind, tun, Endpoint, KeyPair}; pub struct DeviceInner> { - pub enabled: AtomicBool, - // inbound writer (TUN) pub inbound: T, // outbound writer (Bind) - pub outbound: RwLock>, + pub outbound: RwLock<(bool, Option)>, // routing pub recv: RwLock>>>, // receiver id -> decryption state @@ -93,8 +91,7 @@ impl> Device> Device> Device