[Modify] Add it
This commit is contained in:
parent
f1e6fb22df
commit
33b1c52247
@ -168,6 +168,17 @@ namespace WebSocketSharp.Net
|
|||||||
getEndPointListener (addr, port, pref.IsSecure, listener).RemovePrefix (pref, listener);
|
getEndPointListener (addr, port, pref.IsSecure, listener).RemovePrefix (pref, listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static bool tryGetEndPointListener (
|
||||||
|
IPAddress address, int port, out EndPointListener listener
|
||||||
|
)
|
||||||
|
{
|
||||||
|
listener = null;
|
||||||
|
|
||||||
|
Dictionary<int, EndPointListener> endpoints;
|
||||||
|
return _addressToEndpoints.TryGetValue (address, out endpoints)
|
||||||
|
&& endpoints.TryGetValue (port, out listener);
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Internal Methods
|
#region Internal Methods
|
||||||
|
Loading…
Reference in New Issue
Block a user