diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2018-05-18 18:22:50 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2018-05-22 10:19:30 +0200 |
| commit | 6a89c152e3126c30557c8f36f5f94bc518e01968 (patch) | |
| tree | 6e920efeac1ca8e19abf24dc219671c6749dc27c | |
| parent | 37e4d24fcbab957cbe758d2a20a4fc70f4de3edd (diff) | |
| download | mullvadvpn-6a89c152e3126c30557c8f36f5f94bc518e01968.tar.xz mullvadvpn-6a89c152e3126c30557c8f36f5f94bc518e01968.zip | |
Fix bug with attaching null to OpenVPN stdio
| -rw-r--r-- | talpid-core/src/process/openvpn.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/talpid-core/src/process/openvpn.rs b/talpid-core/src/process/openvpn.rs index 734918853f..bf7d1ef477 100644 --- a/talpid-core/src/process/openvpn.rs +++ b/talpid-core/src/process/openvpn.rs @@ -111,15 +111,15 @@ impl OpenVpnCommand { let mut cmd = duct::cmd(&self.openvpn_bin, self.get_arguments()).unchecked(); // Prevent forwarding the stdio when it's not available. - if atty::is(atty::Stream::Stdin) { + if !atty::is(atty::Stream::Stdin) { cmd = cmd.stdin_null(); } - if atty::is(atty::Stream::Stdout) { + if !atty::is(atty::Stream::Stdout) { cmd = cmd.stdout_null(); } - if atty::is(atty::Stream::Stderr) { + if !atty::is(atty::Stream::Stderr) { cmd = cmd.stderr_null(); } |
