From 73de6c8b5e0f1d7816728c31d1b2b19799c37f00 Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Thu, 14 Dec 2023 14:55:45 +0100 Subject: [PATCH] Change socket format in error messages --- HyperbolicDownloader/Program.cs | 2 +- HyperbolicDownloaderApi/Commands/FileCommands.cs | 2 +- HyperbolicDownloaderApi/Commands/HostCommands.cs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/HyperbolicDownloader/Program.cs b/HyperbolicDownloader/Program.cs index b747423..0f634ab 100644 --- a/HyperbolicDownloader/Program.cs +++ b/HyperbolicDownloader/Program.cs @@ -88,7 +88,7 @@ internal static class Program if (activeHostsCount == 0) { ConsoleExt.WriteLine("No active hosts found!", ConsoleColor.Red); - ConsoleExt.WriteLine("Use 'add host xxx.xxx.xxx.xxx:yyyy' to add a new host or use 'discover' to find hosts in the local network.", ConsoleColor.Red); + ConsoleExt.WriteLine("Use 'add host :' to add a new host or use 'discover' to find hosts in the local network.", ConsoleColor.Red); } Console.WriteLine($"{apiManager.HostsManager.Count} known host(s)."); diff --git a/HyperbolicDownloaderApi/Commands/FileCommands.cs b/HyperbolicDownloaderApi/Commands/FileCommands.cs index aa0a4d2..ec22427 100644 --- a/HyperbolicDownloaderApi/Commands/FileCommands.cs +++ b/HyperbolicDownloaderApi/Commands/FileCommands.cs @@ -128,7 +128,7 @@ public class FileCommands if (parts.Length != 2) { - ApiManager.SendNotificationMessageNewLine("Invalid format! Use this format: (xxx.xxx.xxx.xxx:yyyy)", NotificationMessageType.Error); + ApiManager.SendNotificationMessageNewLine("Invalid format! Use this format: :", NotificationMessageType.Error); return; } diff --git a/HyperbolicDownloaderApi/Commands/HostCommands.cs b/HyperbolicDownloaderApi/Commands/HostCommands.cs index 27aee4d..e59e3a1 100644 --- a/HyperbolicDownloaderApi/Commands/HostCommands.cs +++ b/HyperbolicDownloaderApi/Commands/HostCommands.cs @@ -35,7 +35,7 @@ public class HostCommands if (activeHostsCount == 0) { ApiManager.SendNotificationMessageNewLine("No active hosts found!", NotificationMessageType.Error); - ApiManager.SendNotificationMessageNewLine("Use 'add host xxx.xxx.xxx.xxx:yyyy' to add a new host.", NotificationMessageType.Error); + ApiManager.SendNotificationMessageNewLine("Use 'add host :' to add a new host.", NotificationMessageType.Error); } ApiManager.SendNotificationMessageNewLine(string.Empty, NotificationMessageType.Info); @@ -85,7 +85,7 @@ public class HostCommands if (parts.Length != 2) { - ApiManager.SendNotificationMessageNewLine("Invalid format! Use this format: (xxx.xxx.xxx.xxx:yyyy)", NotificationMessageType.Error); + ApiManager.SendNotificationMessageNewLine("Invalid format! Use this format: :", NotificationMessageType.Error); return; } @@ -123,7 +123,7 @@ public class HostCommands if (parts.Length != 2) { - ApiManager.SendNotificationMessageNewLine("Invalid format! Use this format: (xxx.xxx.xxx.xxx:yyyy)", NotificationMessageType.Error); + ApiManager.SendNotificationMessageNewLine("Invalid format! Use this format: :", NotificationMessageType.Error); return; }