|
|
|
@ -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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|