summaryrefslogtreecommitdiffhomepage
path: root/talpid-core
diff options
context:
space:
mode:
Diffstat (limited to 'talpid-core')
-rw-r--r--talpid-core/src/tunnel/mod.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/talpid-core/src/tunnel/mod.rs b/talpid-core/src/tunnel/mod.rs
index 49d1d7dd44..a2ab25a487 100644
--- a/talpid-core/src/tunnel/mod.rs
+++ b/talpid-core/src/tunnel/mod.rs
@@ -48,7 +48,7 @@ pub enum TunnelEvent {
/// Sent when the tunnel comes up and is ready for traffic.
Up {
/// The name of the device which the tunnel is running on.
- dev: String,
+ tunnel_interface: String,
},
/// Sent when the tunnel goes down.
Down,
@@ -62,8 +62,9 @@ impl TunnelEvent {
-> Option<TunnelEvent> {
match *event {
OpenVpnPluginEvent::Up => {
- let dev = env.get("dev").expect("No \"dev\" in tunnel up event").to_owned();
- Some(TunnelEvent::Up { dev })
+ let tunnel_interface =
+ env.get("dev").expect("No \"dev\" in tunnel up event").to_owned();
+ Some(TunnelEvent::Up { tunnel_interface })
}
OpenVpnPluginEvent::RoutePredown => Some(TunnelEvent::Down),
_ => None,