diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2017-09-07 08:40:50 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2017-09-07 08:40:50 +0200 |
| commit | bdfa57a2b9740b25dd81497fee696f39fc4bbefd (patch) | |
| tree | 87736573048e6345dafe4e89128279e6ce647875 /talpid-core | |
| parent | 2a9fa82c8b5631992f391d4a0022e1920e366ce3 (diff) | |
| download | mullvadvpn-bdfa57a2b9740b25dd81497fee696f39fc4bbefd.tar.xz mullvadvpn-bdfa57a2b9740b25dd81497fee696f39fc4bbefd.zip | |
Change "dev" to descriptive "tunnel_interface"
Diffstat (limited to 'talpid-core')
| -rw-r--r-- | talpid-core/src/tunnel/mod.rs | 7 |
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, |
