diff options
Diffstat (limited to 'src/configuration')
-rw-r--r-- | src/configuration/config.rs | 6 | ||||
-rw-r--r-- | src/configuration/error.rs | 2 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/configuration/config.rs b/src/configuration/config.rs index c045d1e..94b79f7 100644 --- a/src/configuration/config.rs +++ b/src/configuration/config.rs @@ -29,12 +29,6 @@ pub struct PeerState { pub struct WireguardConfig<T: tun::Tun, B: udp::PlatformUDP>(Arc<Mutex<Inner<T, B>>>); -struct State<B: udp::PlatformUDP> { - port: u16, - bind: Option<B::Owner>, - fwmark: Option<u32>, -} - struct Inner<T: tun::Tun, B: udp::PlatformUDP> { wireguard: Wireguard<T, B>, port: u16, diff --git a/src/configuration/error.rs b/src/configuration/error.rs index b7d7bb0..fca194f 100644 --- a/src/configuration/error.rs +++ b/src/configuration/error.rs @@ -3,7 +3,6 @@ use std::fmt; #[derive(Debug)] pub enum ConfigError { - NoSuchPeer, NotListening, FailedToBind, InvalidHexValue, @@ -40,7 +39,6 @@ impl ConfigError { pub fn errno(&self) -> i32 { // TODO: obtain the correct errorno values match self { - ConfigError::NoSuchPeer => 1, ConfigError::NotListening => 2, ConfigError::FailedToBind => 3, ConfigError::InvalidHexValue => 4, |