summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-10-11 14:34:16 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-10-11 14:34:16 +0200
commit6000cbf7e4e576951c9d3455a118a2ad3c5a5f93 (patch)
tree5da470940e4d79467351aec152970ac34e485b4f /src/config.rs
parentEnable adding TUN reader to WG interface (diff)
downloadwireguard-rs-6000cbf7e4e576951c9d3455a118a2ad3c5a5f93.tar.xz
wireguard-rs-6000cbf7e4e576951c9d3455a118a2ad3c5a5f93.zip
Port timer.c from WireGuard
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs
index 60faf43..3376dcc 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -3,7 +3,8 @@ use std::net::{IpAddr, SocketAddr};
use x25519_dalek::{PublicKey, StaticSecret};
use crate::wireguard::Wireguard;
-use crate::types::{Bind, Endpoint, Tun};
+use crate::types::tun::Tun;
+use crate::types::bind::Bind;
///
/// The goal of the configuration interface is, among others,
@@ -177,7 +178,7 @@ impl <T : Tun, B : Bind>Configuration for Wireguard<T, B> {
}
fn set_listen_port(&self, port : u16) -> Option<ConfigError> {
-
+ None
}
} \ No newline at end of file