[Modify] Polish it
This commit is contained in:
parent
5216ee8c8d
commit
e4375bd18a
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user