diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-12-26 22:55:33 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-12-26 22:55:33 +0100 |
commit | bb0a8acea3161a08ac69cc2e35489f8d33741d1a (patch) | |
tree | e81a6384c4dc26743b67937fd0e0e721a73dc5b3 /src/wireguard/peer.rs | |
parent | Remove unused test code. (diff) | |
download | wireguard-rs-bb0a8acea3161a08ac69cc2e35489f8d33741d1a.tar.xz wireguard-rs-bb0a8acea3161a08ac69cc2e35489f8d33741d1a.zip |
Make under_load global for WireGuard device
Diffstat (limited to 'src/wireguard/peer.rs')
-rw-r--r-- | src/wireguard/peer.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wireguard/peer.rs b/src/wireguard/peer.rs index 5d15cf3..e02d2e0 100644 --- a/src/wireguard/peer.rs +++ b/src/wireguard/peer.rs @@ -3,8 +3,8 @@ use super::timers::{Events, Timers}; use super::tun::Tun; use super::udp::UDP; -use super::Wireguard; +use super::wireguard::WireGuard; use super::constants::REKEY_TIMEOUT; use super::workers::HandshakeJob; @@ -23,7 +23,7 @@ pub struct PeerInner<T: Tun, B: UDP> { pub id: u64, // wireguard device state - pub wg: Wireguard<T, B>, + pub wg: WireGuard<T, B>, // handshake state pub walltime_last_handshake: Mutex<Option<SystemTime>>, // walltime for last handshake (for UAPI status) |