1
0
mirror of https://github.com/Ylianst/MeshCentralRouter synced 2025-12-14 15:23:35 +00:00

Added auto fallback to native sockets.

This commit is contained in:
Ylian Saint-Hilaire
2021-11-24 20:55:09 -08:00
parent 83d64597fc
commit c1947f81a8
2 changed files with 37 additions and 6 deletions

View File

@@ -236,7 +236,7 @@ namespace MeshCentralRouter
if (arg.ToLower() == "-all") { inaddrany = true; }
if (arg.ToLower() == "-inaddrany") { inaddrany = true; }
if (arg.ToLower() == "-tray") { notifyIcon.Visible = true; this.ShowInTaskbar = false; this.MinimizeBox = false; }
if (arg.ToLower() == "-nonative") { webSocketClient.nativeWebSocketFirst = false; }
if (arg.ToLower() == "-native") { webSocketClient.nativeWebSocketFirst = true; }
if (arg.Length > 6 && arg.Substring(0, 6).ToLower() == "-host:") { serverNameComboBox.Text = arg.Substring(6); argflags |= 1; }
if (arg.Length > 6 && arg.Substring(0, 6).ToLower() == "-user:") { userNameTextBox.Text = arg.Substring(6); argflags |= 2; }
if (arg.Length > 6 && arg.Substring(0, 6).ToLower() == "-pass:") { passwordTextBox.Text = arg.Substring(6); argflags |= 4; }