diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2018-02-27 10:37:44 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2018-02-27 11:10:13 +0100 |
| commit | 687e05a940722a664058b014b40f14015e29fbb4 (patch) | |
| tree | 314f0691dc716e885610ef7f38b4dfd4354530d3 | |
| parent | 4cab9e66f6f9bd80f36edc68384fc70933aa2381 (diff) | |
| download | mullvadvpn-687e05a940722a664058b014b40f14015e29fbb4.tar.xz mullvadvpn-687e05a940722a664058b014b40f14015e29fbb4.zip | |
Rename linux firewall unix -> linux
| -rw-r--r-- | talpid-core/src/firewall/linux.rs (renamed from talpid-core/src/firewall/unix.rs) | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/talpid-core/src/firewall/unix.rs b/talpid-core/src/firewall/linux.rs index b39013e3c0..53c3bfb12f 100644 --- a/talpid-core/src/firewall/unix.rs +++ b/talpid-core/src/firewall/linux.rs @@ -1,13 +1,12 @@ use super::{Firewall, SecurityPolicy}; -/// alias used to instantiate firewall implementation -pub type ConcreteFirewall = Netfilter; - error_chain!{} /// The Linux implementation for the `Firewall` trait. pub struct Netfilter; -impl Firewall<Error> for Netfilter { +impl Firewall for Netfilter { + type Error = Error; + fn new() -> Result<Self> { Ok(Netfilter) } |
