diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2019-10-29 13:27:37 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2019-10-29 15:21:33 +0100 |
| commit | 6e97e362f6582704b1f3f2c49dfbeadd38bb5724 (patch) | |
| tree | ad1ca6190503851640da48f67e442b423b06784f /talpid-core/src | |
| parent | 097876fed792397e77108ec11dfc68ce9ed35d44 (diff) | |
| download | mullvadvpn-6e97e362f6582704b1f3f2c49dfbeadd38bb5724.tar.xz mullvadvpn-6e97e362f6582704b1f3f2c49dfbeadd38bb5724.zip | |
Upgrade duct to 0.13
Diffstat (limited to 'talpid-core/src')
| -rw-r--r-- | talpid-core/src/dns/linux/resolvconf.rs | 2 | ||||
| -rw-r--r-- | talpid-core/src/process/openvpn.rs | 2 | ||||
| -rw-r--r-- | talpid-core/src/proxy/shadowsocks.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/talpid-core/src/dns/linux/resolvconf.rs b/talpid-core/src/dns/linux/resolvconf.rs index d03499f930..537db43b10 100644 --- a/talpid-core/src/dns/linux/resolvconf.rs +++ b/talpid-core/src/dns/linux/resolvconf.rs @@ -63,7 +63,7 @@ impl Resolvconf { } let output = duct::cmd!(&self.resolvconf, "-a", &record_name) - .input(record_contents) + .stdin_bytes(record_contents) .stderr_capture() .unchecked() .run() diff --git a/talpid-core/src/process/openvpn.rs b/talpid-core/src/process/openvpn.rs index ea43e12494..1abe3b9594 100644 --- a/talpid-core/src/process/openvpn.rs +++ b/talpid-core/src/process/openvpn.rs @@ -374,7 +374,7 @@ impl OpenVpnProcHandle { } let (reader, writer) = pipe()?; - let proc_handle = cmd.stdin_handle(reader).start()?; + let proc_handle = cmd.stdin_file(reader).start()?; Ok(Self { inner: proc_handle, diff --git a/talpid-core/src/proxy/shadowsocks.rs b/talpid-core/src/proxy/shadowsocks.rs index 890767a001..6a1fab1414 100644 --- a/talpid-core/src/proxy/shadowsocks.rs +++ b/talpid-core/src/proxy/shadowsocks.rs @@ -151,7 +151,7 @@ impl ShadowsocksProxyMonitor { logging::rotate_log(&logfile) .map_err(|_| Error::new(ErrorKind::Other, "Failed to rotate log file"))?; - cmd = cmd.stdin_null().stderr_to_stdout().stdout(&logfile); + cmd = cmd.stdin_null().stderr_to_stdout().stdout_path(&logfile); let subproc = cmd.start()?; |
