From 600560a615cbf54b61809cfbc984093b6613f3b3 Mon Sep 17 00:00:00 2001 From: Niko PLP Date: Tue, 1 Aug 2023 16:37:37 +0300 Subject: [PATCH] fix ngaccount in release --- ngaccount/src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ngaccount/src/main.rs b/ngaccount/src/main.rs index 53ad684..459065b 100644 --- a/ngaccount/src/main.rs +++ b/ngaccount/src/main.rs @@ -243,7 +243,7 @@ async fn main() -> anyhow::Result<()> { ip, port, peer_id, - domain, + domain: domain.clone(), }); // GET /api/v1/register/ca with the same ?ca= query param => 201 CREATED @@ -262,7 +262,8 @@ async fn main() -> anyhow::Result<()> { #[cfg(not(debug_assertions))] { - cors = cors.allow_origin(format!("https://{}", domain)); + let origin = format!("https://{}", domain); + cors = cors.allow_origin(origin.as_str()); } #[cfg(debug_assertions)] {