mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
fix(windows): copy default debug and release settings from Android (#2963)
and fix a couple other settings.
This commit is contained in:
@@ -20,7 +20,8 @@ pub struct Tun {
|
||||
impl Tun {
|
||||
pub fn new(config: &InterfaceConfig) -> Result<Self> {
|
||||
const TUNNEL_UUID: &str = "e9245bc1-b8c1-44ca-ab1d-c6aad4f13b9c";
|
||||
const TUNNEL_NAME: &str = "Firezone Tunnel";
|
||||
// wintun automatically appends " Tunnel" to this
|
||||
const TUNNEL_NAME: &str = "Firezone";
|
||||
|
||||
// The unsafe is here because we're loading a DLL from disk and it has arbitrary C code in it.
|
||||
// The Windows client, in `wintun_install` hashes the DLL at startup, before calling connlib, so it's unlikely for the DLL to be accidentally corrupted by the time we get here.
|
||||
|
||||
@@ -59,6 +59,7 @@ If the client stops running while signed in, then the token may be stored in Win
|
||||
|
||||
# Diagnostic logs
|
||||
|
||||
- [ ] Given the client was built in release mode, when you first start the client, then it will use the release mode default settings
|
||||
- [ ] Given the client app is signed out, when you change the log filter in the Advanced Settings tab, then the log filter for both the GUI and connlib will change immediately
|
||||
- [ ] Given the Diagnostic Logs tabs is not displayed, when you open the Diagnostic Logs tab, then the log directory size is computed in a worker task (not blocking the GUI) and displayed
|
||||
- [ ] Given the client app is computing the log directory size, when you click "Clear Logs", then the computation will be canceled.
|
||||
|
||||
@@ -15,12 +15,24 @@ pub(crate) struct AdvancedSettings {
|
||||
pub log_filter: String,
|
||||
}
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
impl Default for AdvancedSettings {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
auth_base_url: Url::parse("https://app.firez.one").unwrap(),
|
||||
api_url: Url::parse("wss://api.firez.one").unwrap(),
|
||||
log_filter: "firezone_windows_client=debug,firezone_tunnel=trace,connlib_shared=debug,connlib_client_shared=debug,warn".to_string(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(debug_assertions))]
|
||||
impl Default for AdvancedSettings {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
auth_base_url: Url::parse("https://app.firezone.dev").unwrap(),
|
||||
api_url: Url::parse("wss://api.firezone.dev").unwrap(),
|
||||
log_filter: "info".to_string(),
|
||||
log_filter: "firezone_windows_client=info,firezone_tunnel=trace,connlib_shared=info,connlib_client_shared=info,webrtc=error,warn".to_string(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
"resizable": true,
|
||||
"width": 640,
|
||||
"height": 480,
|
||||
"visible": true
|
||||
"visible": false
|
||||
},
|
||||
{
|
||||
"label": "settings",
|
||||
|
||||
Reference in New Issue
Block a user