From 6648d1da1df9a4e4e2945739fc0fd3c7f77643cb Mon Sep 17 00:00:00 2001 From: fx Date: Sat, 14 Oct 2023 22:01:33 +0200 Subject: test this fing shit on pi wohoo --- src/routes/start.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/routes/start.rs') diff --git a/src/routes/start.rs b/src/routes/start.rs index d16ea4e..2e6a648 100644 --- a/src/routes/start.rs +++ b/src/routes/start.rs @@ -28,7 +28,7 @@ pub async fn start(State(state): State>, headers: HeaderMap let bind_addr = SETTINGS .get_string("bindaddr") - .map_err(|err| WebolError::Server(Box::new(err)))?; + .unwrap_or("0.0.0.0:1111".to_string()); let _ = send_packet( &bind_addr.parse().map_err(|err| WebolError::Server(Box::new(err)))?, -- cgit v1.2.3 From 912323d9e42a45e05fa34778dad75ced7b0096fc Mon Sep 17 00:00:00 2001 From: fx Date: Sun, 15 Oct 2023 16:26:16 +0200 Subject: added log for build test --- src/routes/start.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/routes/start.rs') diff --git a/src/routes/start.rs b/src/routes/start.rs index 2e6a648..163d58c 100644 --- a/src/routes/start.rs +++ b/src/routes/start.rs @@ -12,6 +12,7 @@ use crate::db::Device; use crate::error::WebolError; pub async fn start(State(state): State>, headers: HeaderMap, Json(payload): Json) -> Result, WebolError> { + info!("POST request"); let secret = headers.get("authorization"); if auth(secret).map_err(WebolError::Auth)? { let device = sqlx::query_as!( -- cgit v1.2.3