Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/enterprise/license.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,13 @@ async fn renew_license(db_pool: &DbPool) -> Result<String, LicenseError> {
};

// 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
{
Expand Down