diff options
| author | Emīls Piņķis <emils@mullvad.net> | 2018-08-28 16:45:07 +0100 |
|---|---|---|
| committer | Emīls Piņķis <emils@mullvad.net> | 2018-08-29 16:28:17 +0100 |
| commit | 0dd43272e4473dbd01ef39ab8bfbb454c47487da (patch) | |
| tree | b72f5e2171a425199677820de8c031d7eabc5c9b /mullvad-cli/src/cmds/lan.rs | |
| parent | c3104f8a5ec79827c56e71732e867d836428357b (diff) | |
| download | mullvadvpn-0dd43272e4473dbd01ef39ab8bfbb454c47487da.tar.xz mullvadvpn-0dd43272e4473dbd01ef39ab8bfbb454c47487da.zip | |
Change mullvad-cli to use new jsonrpc client
Diffstat (limited to 'mullvad-cli/src/cmds/lan.rs')
| -rw-r--r-- | mullvad-cli/src/cmds/lan.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/mullvad-cli/src/cmds/lan.rs b/mullvad-cli/src/cmds/lan.rs index bd6516f6bf..65754e3425 100644 --- a/mullvad-cli/src/cmds/lan.rs +++ b/mullvad-cli/src/cmds/lan.rs @@ -1,7 +1,5 @@ use clap; -use {Command, Result}; - -use mullvad_ipc_client::DaemonRpcClient; +use {new_rpc_client, Command, Result}; pub struct Lan; @@ -42,14 +40,14 @@ impl Command for Lan { impl Lan { fn set(&self, allow_lan: bool) -> Result<()> { - let mut rpc = DaemonRpcClient::new()?; + let mut rpc = new_rpc_client()?; rpc.set_allow_lan(allow_lan)?; println!("Changed local network sharing setting"); Ok(()) } fn get(&self) -> Result<()> { - let mut rpc = DaemonRpcClient::new()?; + let mut rpc = new_rpc_client()?; let allow_lan = rpc.get_allow_lan()?; println!( "Local network sharing setting: {}", |
