diff --git a/src/FubarDev.FtpServer/MultiBindingTcpListener.cs b/src/FubarDev.FtpServer/MultiBindingTcpListener.cs index b48b3312..2a05b995 100644 --- a/src/FubarDev.FtpServer/MultiBindingTcpListener.cs +++ b/src/FubarDev.FtpServer/MultiBindingTcpListener.cs @@ -36,7 +36,7 @@ public class MultiBindingTcpListener /// The logger. public MultiBindingTcpListener(string address, int port, [CanBeNull] ILogger logger) { - if (port < 1 || port > 65535) + if (port < 0 || port > 65535) { throw new ArgumentOutOfRangeException(nameof(port), "The port argument is out of range"); }