[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> /// </exception>
public HttpServer (int port, bool secure) public HttpServer (int port, bool secure)
{ {
if (!port.IsPortNumber ()) if (!port.IsPortNumber ()) {
throw new ArgumentOutOfRangeException ( var msg = "Less than 1 or greater than 65535.";
"port", "Not between 1 and 65535 inclusive: " + port); throw new ArgumentOutOfRangeException ("port", msg);
}
init ("*", System.Net.IPAddress.Any, port, secure); init ("*", System.Net.IPAddress.Any, port, secure);
} }