diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2017-03-06 19:58:46 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2017-03-07 08:46:23 +0100 |
| commit | 370e68a447c788c026ab573db7eb932735ff2554 (patch) | |
| tree | 8c99ee6a233d8ee12f803563c6a03c44bfb3b592 /talpid_cli | |
| parent | 14fc5c2740687465e41960dc73e201ba71068840 (diff) | |
| download | mullvadvpn-370e68a447c788c026ab573db7eb932735ff2554.tar.xz mullvadvpn-370e68a447c788c026ab573db7eb932735ff2554.zip | |
Add event to what is sent from plugin
Diffstat (limited to 'talpid_cli')
| -rw-r--r-- | talpid_cli/src/main.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/talpid_cli/src/main.rs b/talpid_cli/src/main.rs index b6ce7654ff..f31be12e77 100644 --- a/talpid_cli/src/main.rs +++ b/talpid_cli/src/main.rs @@ -64,8 +64,11 @@ fn main_loop(mut monitor: OpenVpnMonitor) -> Result<()> { println!("Monitored process exited. clean: {}", clean); break; } - OpenVpnEvent::PluginEvent(env) => { - println!("OpenVPN event with env:\n{:?}", env); + OpenVpnEvent::PluginEvent(Ok((event, env))) => { + println!("OpenVPN event:\nEvent: {:?}\nENV: {:?}", event, env); + } + OpenVpnEvent::PluginEvent(Err(e)) => { + println!("Read error from plugin: {:?}", e) } } } |
