mirror of
https://github.com/Stone-Red-Code/HyperbolicDownloader.git
synced 2026-09-04 00:56:09 +02:00
Minor bug fixes
This commit is contained in:
@@ -150,6 +150,7 @@ public class HostCommands
|
||||
{
|
||||
ApiManager.SendNotificationMessageNewLine($"Success! Added {recivedHosts.Count} new host(s).", NotificationMessageType.Success);
|
||||
hostsManager.AddRange(recivedHosts);
|
||||
hostsManager.Add(new NetworkSocket(ipAddress.ToString(), port, DateTime.Now));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -81,6 +81,11 @@ public class ApiManager
|
||||
SendNotificationMessageNewLine($"An error occurred while mapping the private port ({ApiConfiguration.PrivatePort}) to the public port ({ApiConfiguration.PublicPort})! Error message: {ex.Message}", NotificationMessageType.Error);
|
||||
return false;
|
||||
}
|
||||
catch (SocketException ex)
|
||||
{
|
||||
SendNotificationMessageNewLine($"An error occurred while mapping the private port ({ApiConfiguration.PrivatePort}) to the public port ({ApiConfiguration.PublicPort})! Error message: {ex.Message}", NotificationMessageType.Error);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static void ClosePorts()
|
||||
|
||||
Reference in New Issue
Block a user