diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-12-27 18:01:11 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-12-27 18:01:11 +0100 |
commit | d4f5d5b7237d78ea177004a0650a550d03110b7c (patch) | |
tree | a97a215ac19ef73d8ae322513422253f2e3947f2 /src/platform | |
parent | Remove unused under_load code (diff) | |
download | wireguard-rs-d4f5d5b7237d78ea177004a0650a550d03110b7c.tar.xz wireguard-rs-d4f5d5b7237d78ea177004a0650a550d03110b7c.zip |
Fixed typo in under load codeclean
Diffstat (limited to 'src/platform')
-rw-r--r-- | src/platform/linux/tun.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/platform/linux/tun.rs b/src/platform/linux/tun.rs index 9ccda86..c282a4b 100644 --- a/src/platform/linux/tun.rs +++ b/src/platform/linux/tun.rs @@ -299,7 +299,10 @@ impl LinuxTunStatus { Err(LinuxTunError::Closed) } else { Ok(LinuxTunStatus { - events: vec![TunEvent::Up(1500)], + events: vec![ + #[cfg(feature = "start_up")] + TunEvent::Up(1500), + ], index: get_ifindex(&name), fd, name, |