[Modify] Polish it

This commit is contained in:
sta 2017-01-30 15:57:42 +09:00
parent 5bbaf75599
commit b6909ac867

View File

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