[Modify] Separate it
This commit is contained in:
parent
215574b9ab
commit
b4c62cf360
@ -625,7 +625,12 @@ namespace WebSocketSharp.Server
|
||||
private void processRequest (TcpListenerWebSocketContext context)
|
||||
{
|
||||
var uri = context.RequestUri;
|
||||
if (uri == null || uri.Port != _port) {
|
||||
if (uri == null) {
|
||||
context.Close (HttpStatusCode.BadRequest);
|
||||
return;
|
||||
}
|
||||
|
||||
if (uri.Port != _port) {
|
||||
context.Close (HttpStatusCode.BadRequest);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user