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/main.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 '')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index e9dbe82..a0f4a23 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,6 +25,8 @@ use platform::tun::{PlatformTun, Status}; use platform::uapi::{BindUAPI, PlatformUAPI}; use platform::*; +use wireguard::WireGuard; + #[cfg(feature = "profiler")] fn profiler_stop() { println!("Stopping profiler"); @@ -118,7 +120,7 @@ fn main() { profiler_start(name.as_str()); // create WireGuard device - let wg: wireguard::Wireguard<plt::Tun, plt::UDP> = wireguard::Wireguard::new(writer); + let wg: WireGuard<plt::Tun, plt::UDP> = WireGuard::new(writer); // add all Tun readers while let Some(reader) = readers.pop() { @@ -126,7 +128,7 @@ fn main() { } // wrap in configuration interface - let cfg = configuration::WireguardConfig::new(wg.clone()); + let cfg = configuration::WireGuardConfig::new(wg.clone()); // start Tun event thread { |