diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-11-21 17:12:00 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-11-21 17:12:00 +0100 |
commit | dee23969f5b1cfce7b352d6782a86cac062ec12e (patch) | |
tree | 15360be6307d32515f9d1be1efcba3dc470c42d9 /src/wireguard/peer.rs | |
parent | Clean dependencies and imports (diff) | |
download | wireguard-rs-dee23969f5b1cfce7b352d6782a86cac062ec12e.tar.xz wireguard-rs-dee23969f5b1cfce7b352d6782a86cac062ec12e.zip |
Daemonization
Diffstat (limited to 'src/wireguard/peer.rs')
-rw-r--r-- | src/wireguard/peer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wireguard/peer.rs b/src/wireguard/peer.rs index 7d95493..92844b6 100644 --- a/src/wireguard/peer.rs +++ b/src/wireguard/peer.rs @@ -30,7 +30,7 @@ pub struct PeerInner<T: Tun, B: Bind> { pub wg: Arc<WireguardInner<T, B>>, // handshake state - pub walltime_last_handshake: Mutex<SystemTime>, + pub walltime_last_handshake: Mutex<Option<SystemTime>>, pub last_handshake_sent: Mutex<Instant>, // instant for last handshake pub handshake_queued: AtomicBool, // is a handshake job currently queued for the peer? pub queue: Mutex<Sender<HandshakeJob<B::Endpoint>>>, // handshake queue |