From 5dbd2b8bfc98d137f562305b604668bd931192ee Mon Sep 17 00:00:00 2001 From: Aleksander <170264518+t-aleksander@users.noreply.github.com> Date: Mon, 2 Sep 2024 10:12:51 +0200 Subject: [PATCH] update license server url, set timeout --- src/enterprise/license.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/enterprise/license.rs b/src/enterprise/license.rs index ee0313fb2c..3c61f90b37 100644 --- a/src/enterprise/license.rs +++ b/src/enterprise/license.rs @@ -350,12 +350,13 @@ async fn renew_license(db_pool: &DbPool) -> Result { }; // FIXME: this should be a hardcoded IP, make sure to add appropriate host headers - const LICENSE_SERVER_URL: &str = "https://update-service-dev.teonite.net/api/license/renew"; + const LICENSE_SERVER_URL: &str = "https://update-service-dev.defguard.net/api/license/renew"; let new_license_key = match client .post(LICENSE_SERVER_URL) .json(&request_body) .header(reqwest::header::USER_AGENT, format!("DefGuard/{VERSION}")) + .timeout(Duration::from_secs(10)) .send() .await {