diff --git a/tfclient/Cargo.toml b/tfclient/Cargo.toml index 0e069f6..e58450c 100644 --- a/tfclient/Cargo.toml +++ b/tfclient/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tfclient" -version = "0.1.0" +version = "0.1.1" edition = "2021" description = "An open-source reimplementation of a Defined Networking-compatible client" license = "GPL-3.0-or-later" diff --git a/tfclient/src/apiworker.rs b/tfclient/src/apiworker.rs index 6f328db..4246e93 100644 --- a/tfclient/src/apiworker.rs +++ b/tfclient/src/apiworker.rs @@ -1,14 +1,14 @@ use std::fs; use std::sync::mpsc::{Receiver, TryRecvError}; -use base64::Engine; -use chrono::Local; + + use log::{error, info, warn}; use url::Url; use dnapi_rs::client_blocking::Client; -use trifid_pki::cert::{serialize_ed25519_public, serialize_x25519_public}; -use trifid_pki::ed25519_dalek::{SecretKey, SigningKey}; -use trifid_pki::rand_core::OsRng; -use trifid_pki::x25519_dalek::StaticSecret; + + + + use crate::config::{load_cdata, save_cdata, TFClientConfig}; use crate::daemon::ThreadMessageSender; use crate::dirs::get_nebulaconfig_file; @@ -20,7 +20,7 @@ pub enum APIWorkerMessage { Timer } -pub fn apiworker_main(config: TFClientConfig, instance: String, url: String, tx: ThreadMessageSender, rx: Receiver) { +pub fn apiworker_main(_config: TFClientConfig, instance: String, url: String, tx: ThreadMessageSender, rx: Receiver) { let server = Url::parse(&url).unwrap(); let client = Client::new(format!("tfclient/{}", env!("CARGO_PKG_VERSION")), server).unwrap(); diff --git a/tfclient/src/nebulaworker.rs b/tfclient/src/nebulaworker.rs index 02c1230..6678670 100644 --- a/tfclient/src/nebulaworker.rs +++ b/tfclient/src/nebulaworker.rs @@ -5,7 +5,7 @@ use std::fs; use std::sync::mpsc::{Receiver, TryRecvError}; use std::time::{Duration, SystemTime}; use log::{debug, error, info}; -use crate::config::{load_cdata, NebulaConfig, save_cdata, TFClientConfig}; +use crate::config::{load_cdata, NebulaConfig, TFClientConfig}; use crate::daemon::ThreadMessageSender; use crate::dirs::get_nebulaconfig_file; use crate::embedded_nebula::run_embedded_nebula; @@ -36,7 +36,7 @@ fn insert_private_key(instance: &str) -> Result<(), Box> { } pub fn nebulaworker_main(_config: TFClientConfig, instance: String, _transmitter: ThreadMessageSender, rx: Receiver) { - let cdata = match load_cdata(&instance) { + let _cdata = match load_cdata(&instance) { Ok(data) => data, Err(e) => { error!("unable to load cdata: {}", e);