[Modify] Remove it
This commit is contained in:
parent
c8f674c2f7
commit
02201e5772
@ -128,40 +128,6 @@ namespace WebSocketSharp.Net
|
|||||||
return hostname == "*" || hostname == "+" ? IPAddress.Any : hostname.ToIPAddress ();
|
return hostname == "*" || hostname == "+" ? IPAddress.Any : hostname.ToIPAddress ();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static EndPointListener getEndPointListener (
|
|
||||||
IPAddress address, int port, bool secure, HttpListener listener
|
|
||||||
)
|
|
||||||
{
|
|
||||||
Dictionary<int, EndPointListener> endpoints = null;
|
|
||||||
if (_addressToEndpoints.ContainsKey (address)) {
|
|
||||||
endpoints = _addressToEndpoints[address];
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
endpoints = new Dictionary<int, EndPointListener> ();
|
|
||||||
_addressToEndpoints[address] = endpoints;
|
|
||||||
}
|
|
||||||
|
|
||||||
EndPointListener lsnr = null;
|
|
||||||
if (endpoints.ContainsKey (port)) {
|
|
||||||
lsnr = endpoints[port];
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
lsnr =
|
|
||||||
new EndPointListener (
|
|
||||||
address,
|
|
||||||
port,
|
|
||||||
secure,
|
|
||||||
listener.CertificateFolderPath,
|
|
||||||
listener.SslConfiguration,
|
|
||||||
listener.ReuseAddress
|
|
||||||
);
|
|
||||||
|
|
||||||
endpoints[port] = lsnr;
|
|
||||||
}
|
|
||||||
|
|
||||||
return lsnr;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void removePrefix (string uriPrefix, HttpListener listener)
|
private static void removePrefix (string uriPrefix, HttpListener listener)
|
||||||
{
|
{
|
||||||
var pref = new HttpListenerPrefix (uriPrefix);
|
var pref = new HttpListenerPrefix (uriPrefix);
|
||||||
|
Loading…
Reference in New Issue
Block a user