diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2017-11-14 15:11:23 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2017-11-14 15:12:22 +0100 |
| commit | 0c42e56fb880e5f46439c228c9f2fcd5347cd619 (patch) | |
| tree | 8c57f989c8bdf59b73ee6f3436f17c71d99affdc | |
| parent | 2c3582274c4e57287fb2e1aeb18958fd93da1a38 (diff) | |
| download | mullvadvpn-0c42e56fb880e5f46439c228c9f2fcd5347cd619.tar.xz mullvadvpn-0c42e56fb880e5f46439c228c9f2fcd5347cd619.zip | |
Update TunnelParameters docs
| -rw-r--r-- | talpid-types/src/net.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/talpid-types/src/net.rs b/talpid-types/src/net.rs index e74d98f0d9..9d84be0ea2 100644 --- a/talpid-types/src/net.rs +++ b/talpid-types/src/net.rs @@ -3,7 +3,7 @@ use std::fmt; use std::net::{IpAddr, SocketAddr}; use std::str::FromStr; -/// Represents one tunnel endpoint. Tunnel technology plus address. +/// Represents one tunnel endpoint. Address, plus extra parameters specific to tunnel protocol. #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] pub struct TunnelEndpoint { pub address: IpAddr, @@ -23,9 +23,9 @@ impl TunnelEndpoint { #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Deserialize, Serialize)] pub enum TunnelParameters { - /// An OpenVPN tunnel endpoint. + /// Extra parameters for an OpenVPN tunnel endpoint. OpenVpn(OpenVpnParameters), - /// A Wireguard tunnel endpoint. + /// Extra parameters for a Wireguard tunnel endpoint. Wireguard(WireguardParameters), } |
