|
|
|
@ -129,8 +129,11 @@ namespace WebSocketSharp.Net
|
|
|
|
EndPointListener lsnr;
|
|
|
|
EndPointListener lsnr;
|
|
|
|
|
|
|
|
|
|
|
|
if (_endpoints.TryGetValue (endpoint, out lsnr)) {
|
|
|
|
if (_endpoints.TryGetValue (endpoint, out lsnr)) {
|
|
|
|
if (lsnr.IsSecure ^ pref.IsSecure)
|
|
|
|
if (lsnr.IsSecure ^ pref.IsSecure) {
|
|
|
|
throw new HttpListenerException (87, "Includes an invalid scheme.");
|
|
|
|
var msg = "The URI prefix includes an invalid scheme.";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
throw new HttpListenerException (87, msg);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
lsnr = new EndPointListener (
|
|
|
|
lsnr = new EndPointListener (
|
|
|
|
|