mirror of
https://github.com/Stone-Red-Code/HyperbolicDownloader.git
synced 2026-09-07 23:40:52 +02:00
- Fix spelling mistakes
- Rename `generate single` command to `generate noscan`
This commit is contained in:
@@ -67,7 +67,7 @@ internal static class Program
|
|||||||
Console.WriteLine("Searching for a UPnP/NAT-PMP device...");
|
Console.WriteLine("Searching for a UPnP/NAT-PMP device...");
|
||||||
_ = await OpenPorts();
|
_ = await OpenPorts();
|
||||||
|
|
||||||
ConsoleExt.WriteLine($"The private IP Address is: {NetworkUtilities.GetIP4Adress()} ", ConsoleColor.Green);
|
ConsoleExt.WriteLine($"The private IP address is: {NetworkUtilities.GetIP4Adress()} ", ConsoleColor.Green);
|
||||||
ConsoleExt.WriteLine($"The private port is: {PrivatePort}", ConsoleColor.Green);
|
ConsoleExt.WriteLine($"The private port is: {PrivatePort}", ConsoleColor.Green);
|
||||||
|
|
||||||
Console.WriteLine("Starting TCP listener...");
|
Console.WriteLine("Starting TCP listener...");
|
||||||
@@ -196,7 +196,7 @@ internal static class Program
|
|||||||
device = await discoverer.DiscoverDeviceAsync();
|
device = await discoverer.DiscoverDeviceAsync();
|
||||||
|
|
||||||
IPAddress? ip = await device.GetExternalIPAsync();
|
IPAddress? ip = await device.GetExternalIPAsync();
|
||||||
ConsoleExt.WriteLine($"The public IP Address is: {ip} ", ConsoleColor.Green);
|
ConsoleExt.WriteLine($"The public IP address is: {ip} ", ConsoleColor.Green);
|
||||||
|
|
||||||
portMapping = new Mapping(Protocol.Tcp, PrivatePort, PublicPort, "HyperbolicDowloader");
|
portMapping = new Mapping(Protocol.Tcp, PrivatePort, PublicPort, "HyperbolicDowloader");
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ internal class InputHandler
|
|||||||
getCommand.Register(GetFileFrom, "from");
|
getCommand.Register(GetFileFrom, "from");
|
||||||
|
|
||||||
Command generateCommad = commander.Register(GenerateFileFull, "generate", "gen");
|
Command generateCommad = commander.Register(GenerateFileFull, "generate", "gen");
|
||||||
generateCommad.Register(GenerateFileSingle, "single");
|
generateCommad.Register(GenerateFileSingle, "noscan");
|
||||||
|
|
||||||
Command addCommand = commander.Register(AddFile, "add");
|
Command addCommand = commander.Register(AddFile, "add");
|
||||||
addCommand.Register(AddHost, "host");
|
addCommand.Register(AddHost, "host");
|
||||||
@@ -176,12 +176,12 @@ internal class InputHandler
|
|||||||
{
|
{
|
||||||
if (Program.PublicIpAddress is not null)
|
if (Program.PublicIpAddress is not null)
|
||||||
{
|
{
|
||||||
ConsoleExt.WriteLine($"The public IP Address is: {Program.PublicIpAddress}", ConsoleColor.Green);
|
ConsoleExt.WriteLine($"The public IP address is: {Program.PublicIpAddress}", ConsoleColor.Green);
|
||||||
ConsoleExt.WriteLine($"The public port is: {Program.PublicPort}", ConsoleColor.Green);
|
ConsoleExt.WriteLine($"The public port is: {Program.PublicPort}", ConsoleColor.Green);
|
||||||
Console.WriteLine();
|
Console.WriteLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
ConsoleExt.WriteLine($"The private IP Address is: {NetworkUtilities.GetIP4Adress()}", ConsoleColor.Green);
|
ConsoleExt.WriteLine($"The private IP address is: {NetworkUtilities.GetIP4Adress()}", ConsoleColor.Green);
|
||||||
ConsoleExt.WriteLine($"The private port is: {Program.PrivatePort}", ConsoleColor.Green);
|
ConsoleExt.WriteLine($"The private port is: {Program.PrivatePort}", ConsoleColor.Green);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user