[Modify] Polish it

This commit is contained in:
sta 2017-07-04 16:12:13 +09:00
parent 5216ee8c8d
commit e4375bd18a

View File

@ -187,9 +187,10 @@ namespace WebSocketSharp.Server
/// </exception>
public HttpServer (int port, bool secure)
{
if (!port.IsPortNumber ())
throw new ArgumentOutOfRangeException (
"port", "Not between 1 and 65535 inclusive: " + port);
if (!port.IsPortNumber ()) {
var msg = "Less than 1 or greater than 65535.";
throw new ArgumentOutOfRangeException ("port", msg);
}
init ("*", System.Net.IPAddress.Any, port, secure);
}