[Modify] Polish it
This commit is contained in:
parent
bd6b3d45d1
commit
3558b4e02d
@ -301,8 +301,11 @@ namespace WebSocketSharp.Server
|
|||||||
if (address == null)
|
if (address == null)
|
||||||
throw new ArgumentNullException ("address");
|
throw new ArgumentNullException ("address");
|
||||||
|
|
||||||
if (!address.IsLocal ())
|
if (!address.IsLocal ()) {
|
||||||
throw new ArgumentException ("Not a local IP address.", "address");
|
var msg = "It is not a local IP address.";
|
||||||
|
|
||||||
|
throw new ArgumentException (msg, "address");
|
||||||
|
}
|
||||||
|
|
||||||
if (!port.IsPortNumber ()) {
|
if (!port.IsPortNumber ()) {
|
||||||
var msg = "It is less than 1 or greater than 65535.";
|
var msg = "It is less than 1 or greater than 65535.";
|
||||||
|
Loading…
Reference in New Issue
Block a user