1
0
mirror of https://github.com/Ylianst/MeshCentralRouter synced 2025-12-06 00:13:33 +00:00

Fix for high DPI and open web site button.

This commit is contained in:
Ylian Saint-Hilaire
2021-06-16 11:24:09 -07:00
parent db41b2d525
commit 5041fafd55
4 changed files with 45 additions and 35 deletions

View File

@@ -1338,7 +1338,9 @@ namespace MeshCentralRouter
if (meshcentral.loginCookie != null) {
Uri serverurl = null;
if (authLoginUrl != null) {
serverurl = new Uri("https://" + authLoginUrl.Host + ":" + ((authLoginUrl.Port > 0) ? authLoginUrl.Port : 443) + authLoginUrl.LocalPath + "?login=" + meshcentral.loginCookie);
string localPath = authLoginUrl.LocalPath;
if (localPath.EndsWith("/control.ashx")) { localPath = localPath.Substring(0, localPath.Length - 12); }
serverurl = new Uri("https://" + authLoginUrl.Host + ":" + ((authLoginUrl.Port > 0) ? authLoginUrl.Port : 443) + localPath + "?login=" + meshcentral.loginCookie);
} else {
serverurl = new Uri("https://" + serverNameComboBox.Text + "?login=" + meshcentral.loginCookie);
}