summaryrefslogtreecommitdiffhomepage
path: root/mullvad-daemon
diff options
context:
space:
mode:
authorEmīls Piņķis <emils@mullvad.net>2018-07-17 11:42:59 +0100
committerEmīls Piņķis <emils@mullvad.net>2018-07-17 11:57:27 +0100
commit6bc56104fe394ae19e053f6ea843ebdeb211a038 (patch)
tree087585b20a8d2abb05e296393d46b9480bd572c4 /mullvad-daemon
parent61a0a7b1849be68d403a8748e34e6675a9772739 (diff)
downloadmullvadvpn-6bc56104fe394ae19e053f6ea843ebdeb211a038.tar.xz
mullvadvpn-6bc56104fe394ae19e053f6ea843ebdeb211a038.zip
Remove list-relays.rs
Diffstat (limited to 'mullvad-daemon')
-rw-r--r--mullvad-daemon/src/bin/list-relays.rs34
1 files changed, 0 insertions, 34 deletions
diff --git a/mullvad-daemon/src/bin/list-relays.rs b/mullvad-daemon/src/bin/list-relays.rs
deleted file mode 100644
index a330297e20..0000000000
--- a/mullvad-daemon/src/bin/list-relays.rs
+++ /dev/null
@@ -1,34 +0,0 @@
-//! # License
-//!
-//! Copyright (C) 2017 Amagicom AB
-//!
-//! This program is free software: you can redistribute it and/or modify it under the terms of the
-//! GNU General Public License as published by the Free Software Foundation, either version 3 of
-//! the License, or (at your option) any later version.
-
-#[macro_use]
-extern crate error_chain;
-
-extern crate mullvad_paths;
-extern crate mullvad_rpc;
-extern crate serde_json;
-
-error_chain!{}
-
-quick_main!(run);
-
-fn run() -> Result<()> {
- let ca_path = mullvad_paths::resources::get_api_ca_path();
- let mut rpc_manager = mullvad_rpc::MullvadRpcFactory::new(ca_path);
- let rpc_http_handle = rpc_manager
- .new_connection()
- .chain_err(|| "Unable to connect RPC")?;
- let mut client = mullvad_rpc::RelayListProxy::new(rpc_http_handle);
-
- let relays = client
- .relay_list()
- .call()
- .chain_err(|| "Error during RPC call")?;
- println!("{}", serde_json::to_string_pretty(&relays).unwrap());
- Ok(())
-}