[Modify] Polish it
This commit is contained in:
parent
59537da25b
commit
e15ac24761
@ -90,8 +90,11 @@ namespace WebSocketSharp.Net
|
|||||||
throw new HttpListenerException (87, msg);
|
throw new HttpListenerException (87, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!addr.IsLocal ())
|
if (!addr.IsLocal ()) {
|
||||||
throw new HttpListenerException (87, "Includes an invalid host.");
|
var msg = "The URI prefix includes an invalid host.";
|
||||||
|
|
||||||
|
throw new HttpListenerException (87, msg);
|
||||||
|
}
|
||||||
|
|
||||||
int port;
|
int port;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user