Fix desktop reconnection. Fix crash in Wayland (though still not supported).

This commit is contained in:
Jared Goodwin 2023-04-15 15:15:40 -07:00
parent e97eda0c8a
commit d2dd852a83
3 changed files with 33 additions and 3 deletions

View File

@ -16,7 +16,7 @@ using System.Diagnostics;
var logger = new FileLogger("Remotely_Deskt", "Program.cs");
var filePath = Process.GetCurrentProcess()?.MainModule?.FileName;
var serverUrl = Debugger.IsAttached ? "https://localhost:5001" : string.Empty;
var serverUrl = Debugger.IsAttached ? "http://localhost:5000" : string.Empty;
var getEmbeddedResult = await EmbeddedServerDataSearcher.Instance.TryGetEmbeddedData(filePath);
if (getEmbeddedResult.IsSuccess)
{
@ -40,7 +40,7 @@ var provider = await Startup.UseRemoteControlClient(
#if DEBUG
builder.SetMinimumLevel(LogLevel.Debug);
#endif
builder.AddProvider(new FileLoggerProvider("Remotely_Deskt"));
builder.AddProvider(new FileLoggerProvider("Remotely_Desktop"));
});
services.AddSingleton<IOrganizationIdProvider, OrganizationIdProvider>();

View File

@ -6,5 +6,35 @@
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"ApplicationOptions": {
"AllowApiLogin": false,
"BannedDevices": [],
"DataRetentionInDays": 90,
"DBProvider": "SQLite",
"EnableWindowsEventLog": false,
"EnforceAttendedAccess": false,
"ForceClientHttps": false,
"KnownProxies": [],
"MaxConcurrentUpdates": 10,
"MaxOrganizationCount": 1,
"MessageOfTheDay": "",
"RedirectToHttps": true,
"RemoteControlNotifyUser": true,
"RemoteControlRequiresAuthentication": false,
"RemoteControlSessionLimit": 3,
"Require2FA": false,
"SmtpDisplayName": "",
"SmtpEmail": "",
"SmtpHost": "",
"SmtpLocalDomain": "",
"SmtpCheckCertificateRevocation": true,
"SmtpPassword": "",
"SmtpPort": 587,
"SmtpUserName": "",
"Theme": "Dark",
"TrustedCorsOrigins": [],
"UseHsts": false,
"UseHttpLogging": false
}
}

@ -1 +1 @@
Subproject commit e49eb3f8e3cc3212632c81030d6120bf05b57443
Subproject commit 7b8622db7c9b11e2ece87a85820587c126ba573c