diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-09-03 16:09:37 -0300 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-09-17 10:44:20 -0300 |
| commit | 3620bcf79f2fa357a409e968dc5ef71cd1fb7dc9 (patch) | |
| tree | 719b9d4163e9d4f7a448ab3e5ca47472108f21fa | |
| parent | 98d7859710b30e28f77d5af8e924e922f7c426d5 (diff) | |
| download | mullvadvpn-3620bcf79f2fa357a409e968dc5ef71cd1fb7dc9.tar.xz mullvadvpn-3620bcf79f2fa357a409e968dc5ef71cd1fb7dc9.zip | |
Forward authentication failure events
| -rw-r--r-- | talpid-core/src/tunnel/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/talpid-core/src/tunnel/mod.rs b/talpid-core/src/tunnel/mod.rs index 36b3ff654b..a5d8c35f78 100644 --- a/talpid-core/src/tunnel/mod.rs +++ b/talpid-core/src/tunnel/mod.rs @@ -79,6 +79,8 @@ error_chain!{ /// Possible events from the VPN tunnel and the child process managing it. #[derive(Debug, Clone, Eq, PartialEq, Hash)] pub enum TunnelEvent { + /// Sent when the tunnel fails to connect due to an authentication error. + AuthFailed, /// Sent when the tunnel comes up and is ready for traffic. Up(TunnelMetadata), /// Sent when the tunnel goes down. @@ -104,6 +106,7 @@ impl TunnelEvent { env: &HashMap<String, String>, ) -> Option<TunnelEvent> { match *event { + OpenVpnPluginEvent::AuthFailed => Some(TunnelEvent::AuthFailed), OpenVpnPluginEvent::Up => { let interface = env .get("dev") |
