aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/platform_specific/mod.rs
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2024-08-08 13:37:56 +0200
committerGitHub <noreply@github.com>2024-08-08 13:37:56 +0200
commit060c27a077321b2c88f00798dabc5d3baca4226b (patch)
tree63848c30e8f8ae95da8baa2c0fca79523c64cf20 /src-tauri/src/platform_specific/mod.rs
parent3362cd9b55021c1325fc573a90ee0be22497bdeb (diff)
parent3cab2a7852fdc4663c8c7f4df6a52b831e610e92 (diff)
downloadFlightCore-060c27a077321b2c88f00798dabc5d3baca4226b.tar.gz
FlightCore-060c27a077321b2c88f00798dabc5d3baca4226b.zip
Merge branch 'main' into chore/bump-upload-artifact-actionchore/bump-upload-artifact-action
Diffstat (limited to 'src-tauri/src/platform_specific/mod.rs')
-rw-r--r--src-tauri/src/platform_specific/mod.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src-tauri/src/platform_specific/mod.rs b/src-tauri/src/platform_specific/mod.rs
index 6fdb1ed1..4e0514d4 100644
--- a/src-tauri/src/platform_specific/mod.rs
+++ b/src-tauri/src/platform_specific/mod.rs
@@ -38,3 +38,13 @@ pub async fn get_local_northstar_proton_wrapper_version() -> Result<String, Stri
#[cfg(target_os = "windows")]
Err("Not supported on Windows".to_string())
}
+
+/// Check whether the current device might be behind a CGNAT
+#[tauri::command]
+pub async fn check_cgnat() -> Result<String, String> {
+ #[cfg(target_os = "linux")]
+ return Err("Not supported on Linux".to_string());
+
+ #[cfg(target_os = "windows")]
+ windows::check_cgnat().await
+}