|
|
|
@ -84,8 +84,11 @@ namespace WebSocketSharp.Net
|
|
|
|
|
|
|
|
|
|
|
|
var addr = convertToIPAddress (pref.Host);
|
|
|
|
var addr = convertToIPAddress (pref.Host);
|
|
|
|
|
|
|
|
|
|
|
|
if (addr == null)
|
|
|
|
if (addr == null) {
|
|
|
|
throw new HttpListenerException (87, "Includes an invalid host.");
|
|
|
|
var msg = "The URI prefix includes an invalid host.";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
throw new HttpListenerException (87, msg);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!addr.IsLocal ())
|
|
|
|
if (!addr.IsLocal ())
|
|
|
|
throw new HttpListenerException (87, "Includes an invalid host.");
|
|
|
|
throw new HttpListenerException (87, "Includes an invalid host.");
|
|
|
|
|