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