aboutsummaryrefslogtreecommitdiffstats
path: root/src/wireguard/router/device.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-12-16 16:37:16 +0100
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-12-16 16:37:16 +0100
commit22f978f0142286b26b48a25364236436b9bad56d (patch)
treec8d4bf722e1134c8a66d821b63b7f04eec93a9b0 /src/wireguard/router/device.rs
parentRevert to crossbeam (diff)
downloadwireguard-rs-22f978f0142286b26b48a25364236436b9bad56d.tar.xz
wireguard-rs-22f978f0142286b26b48a25364236436b9bad56d.zip
Clean dead code
Diffstat (limited to 'src/wireguard/router/device.rs')
-rw-r--r--src/wireguard/router/device.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wireguard/router/device.rs b/src/wireguard/router/device.rs
index 1d3b743..a12a657 100644
--- a/src/wireguard/router/device.rs
+++ b/src/wireguard/router/device.rs
@@ -211,7 +211,10 @@ impl<E: Endpoint, C: Callbacks, T: tun::Writer, B: udp::Writer<E>> DeviceHandle<
/// A new secret key has been set for the device.
/// According to WireGuard semantics, this should cause all "sending" keys to be discarded.
- pub fn new_sk(&self) {}
+ pub fn clear_sending_keys(&self) {
+ log::debug!("Clear sending keys");
+ // TODO: Implement. Consider: The device does not have an explicit list of peers
+ }
/// Adds a new peer to the device
///