Skip to content

Commit

Permalink
Support port 0
Browse files Browse the repository at this point in the history
Fixes #55
  • Loading branch information
fubar-coder committed Jan 28, 2019
1 parent 68f2b1e commit e42d14e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FubarDev.FtpServer/MultiBindingTcpListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class MultiBindingTcpListener
/// <param name="logger">The logger.</param>
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");
}
Expand Down

0 comments on commit e42d14e

Please sign in to comment.