diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-08-07 10:35:34 -0300 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-08-14 08:41:17 -0300 |
| commit | 0870f192d707c65c9cdece0896d7de25f09bbf9d (patch) | |
| tree | 8bb08de585eae346f3800b4ae740c848e02b3dca | |
| parent | 53e904f5c36b5b43ec5d9389f99d19a781625081 (diff) | |
| download | mullvadvpn-0870f192d707c65c9cdece0896d7de25f09bbf9d.tar.xz mullvadvpn-0870f192d707c65c9cdece0896d7de25f09bbf9d.zip | |
Add `enable_ipv6` option to `OpenVpnTunnelOptions`
| -rw-r--r-- | talpid-types/src/net.rs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/talpid-types/src/net.rs b/talpid-types/src/net.rs index 53a2b30ab5..296045fd05 100644 --- a/talpid-types/src/net.rs +++ b/talpid-types/src/net.rs @@ -138,9 +138,22 @@ pub struct TunnelOptions { /// OpenVpnTunnelOptions contains options for an openvpn tunnel that should be applied irrespective /// of the relay parameters - i.e. have nothing to do with the particular OpenVPN server, but do /// affect the connection. -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Serialize, Deserialize, Default)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)] +#[serde(default)] pub struct OpenVpnTunnelOptions { /// Optional argument for openvpn to try and limit TCP packet size, /// as discussed [here](https://openvpn.net/archive/openvpn-users/2003-11/msg00154.html) pub mssfix: Option<u16>, + /// Enable configuration of IPv6 on the tunnel interface, allowing IPv6 communication to be + /// forwarded through the tunnel. By default, this is set to `true`. + pub enable_ipv6: bool, +} + +impl Default for OpenVpnTunnelOptions { + fn default() -> Self { + OpenVpnTunnelOptions { + mssfix: None, + enable_ipv6: true, + } + } } |
