summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--talpid-core/src/tunnel/mod.rs3
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")