aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-02-09 08:27:39 +0100
committerGitHub <noreply@github.com>2023-02-09 08:27:39 +0100
commitfd4712accb319cd0084f7e97fea4d9d1299d8938 (patch)
treee63d4f8a3a3168e01b42b5cc4c103f79b28a10bc /src-tauri/src
parent7df1f2dbc038d0d93463249f15ca2e1e7ec23094 (diff)
downloadFlightCore-fd4712accb319cd0084f7e97fea4d9d1299d8938.tar.gz
FlightCore-fd4712accb319cd0084f7e97fea4d9d1299d8938.zip
feat: Add version number to user-agent (#173)
* feat: Add version number to user-agent Uses a crate that allows for formatting at compile time. * fix: Add comment
Diffstat (limited to 'src-tauri/src')
-rw-r--r--src-tauri/src/constants.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src-tauri/src/constants.rs b/src-tauri/src/constants.rs
index 4cc3c204..79c93f61 100644
--- a/src-tauri/src/constants.rs
+++ b/src-tauri/src/constants.rs
@@ -1,6 +1,9 @@
// This file stores various global constants values
-pub const APP_USER_AGENT: &str = "R2NorthstarTools/FlightCore";
+use const_format::concatcp;
+
+// FlightCore user agent for web requests
+pub const APP_USER_AGENT: &str = concatcp!("FlightCore/", env!("CARGO_PKG_VERSION"));
// URL of the Northstar masterserver
pub const MASTER_SERVER_URL: &str = "https://northstar.tf";