diff --git a/slingshot/src/server.rs b/slingshot/src/server.rs index 7021576..ae22afd 100644 --- a/slingshot/src/server.rs +++ b/slingshot/src/server.rs @@ -349,7 +349,11 @@ pub async fn serve( "Slingshot", env!("CARGO_PKG_VERSION"), ) - .server("http://localhost:3000") + .server(if let Some(ref h) = host { + format!("https://{h}") + } else { + "http://localhost:3000".to_string() + }) .url_prefix("/xrpc"); let mut app = Route::new()