diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2019-02-11 13:52:21 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2019-02-14 10:57:29 +0100 |
| commit | afc87f9ae68997bf94a32e7d3718dfe61fd534a8 (patch) | |
| tree | 8f6bf3fd7587de02b2dc05188fcb8ac90ee6bcaa /talpid-core | |
| parent | 565334a1e8edba8b2285704b92f295a7af2e6587 (diff) | |
| download | mullvadvpn-afc87f9ae68997bf94a32e7d3718dfe61fd534a8.tar.xz mullvadvpn-afc87f9ae68997bf94a32e7d3718dfe61fd534a8.zip | |
Fix order of methods on OpenVpnCommand
Diffstat (limited to 'talpid-core')
| -rw-r--r-- | talpid-core/src/process/openvpn.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/talpid-core/src/process/openvpn.rs b/talpid-core/src/process/openvpn.rs index a55d5d3453..1d50883142 100644 --- a/talpid-core/src/process/openvpn.rs +++ b/talpid-core/src/process/openvpn.rs @@ -143,12 +143,6 @@ impl OpenVpnCommand { self } - /// Build a runnable expression from the current state of the command. - pub fn build(&self) -> duct::Expression { - log::debug!("Building expression: {}", &self); - duct::cmd(&self.openvpn_bin, self.get_arguments()).unchecked() - } - /// Sets extra options pub fn tunnel_options(&mut self, tunnel_options: &net::openvpn::TunnelOptions) -> &mut Self { self.tunnel_options = tunnel_options.clone(); @@ -168,8 +162,14 @@ impl OpenVpnCommand { self } + /// Build a runnable expression from the current state of the command. + pub fn build(&self) -> duct::Expression { + log::debug!("Building expression: {}", &self); + duct::cmd(&self.openvpn_bin, self.get_arguments()).unchecked() + } + /// Returns all arguments that the subprocess would be spawned with. - pub fn get_arguments(&self) -> Vec<OsString> { + fn get_arguments(&self) -> Vec<OsString> { let mut args: Vec<OsString> = Self::base_arguments().iter().map(OsString::from).collect(); if let Some(ref config) = self.config { |
