[Modify] Polish it
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user