diff --git a/.gitignore b/.gitignore index 4bcd5bd4..2cce2e55 100644 --- a/.gitignore +++ b/.gitignore @@ -263,5 +263,6 @@ __pycache__/ /Remotely_Server/wwwroot/Downloads/*.exe /Remotely_Server/wwwroot/Downloads/*.zip /Remotely_Server/wwwroot/Downloads/*.appimage +/Remotely_Server/wwwroot/Downloads/CurrentAgentVersion.txt /Remotely_Server/Server.db /Remotely_Agent/Resources/* \ No newline at end of file diff --git a/Remotely_Desktop/ViewModels/MainWindowViewModel.cs b/Remotely_Desktop/ViewModels/MainWindowViewModel.cs index 18363175..31d7caa3 100644 --- a/Remotely_Desktop/ViewModels/MainWindowViewModel.cs +++ b/Remotely_Desktop/ViewModels/MainWindowViewModel.cs @@ -54,6 +54,7 @@ namespace Remotely_Desktop.ViewModels Config = Config.GetConfig(); while (string.IsNullOrWhiteSpace(Config.Host)) { + Config.Host = "https://"; PromptForHostName(); } @@ -135,6 +136,10 @@ namespace Remotely_Desktop.ViewModels prompt.Owner = App.Current?.MainWindow; prompt.ShowDialog(); var result = HostNamePromptViewModel.Current.Host.TrimEnd("/".ToCharArray()); + if (!result.StartsWith("https://") && !result.StartsWith("http://")) + { + result = $"https://{result}"; + } if (result != Config.Host) { Config.Host = result; diff --git a/Remotely_Server/Pages/_IndexLoggedIn.cshtml b/Remotely_Server/Pages/_IndexLoggedIn.cshtml index a28362b8..51a1617a 100644 --- a/Remotely_Server/Pages/_IndexLoggedIn.cshtml +++ b/Remotely_Server/Pages/_IndexLoggedIn.cshtml @@ -2,8 +2,19 @@