diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2017-03-07 09:34:44 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2017-03-07 09:34:44 +0100 |
| commit | f3b45296b9d1decbc737698e3ad34ac9b75d5130 (patch) | |
| tree | 7704c87cb631cbc7ae153b1ed561abd2e32279f8 /talpid_cli/src | |
| parent | f085642d25c2f91095ce01d324a59b5cee23e8b0 (diff) | |
| parent | 8e8e0bbb496c5c68e57884178f197c2584fcb660 (diff) | |
| download | mullvadvpn-f3b45296b9d1decbc737698e3ad34ac9b75d5130.tar.xz mullvadvpn-f3b45296b9d1decbc737698e3ad34ac9b75d5130.zip | |
Merge branch 'send-event-also'
Diffstat (limited to 'talpid_cli/src')
| -rw-r--r-- | talpid_cli/src/main.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/talpid_cli/src/main.rs b/talpid_cli/src/main.rs index b6ce7654ff..dfc13b74d5 100644 --- a/talpid_cli/src/main.rs +++ b/talpid_cli/src/main.rs @@ -64,9 +64,10 @@ 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), } } std::thread::sleep(std::time::Duration::from_millis(500)); |
