Skip to content

Commit

Permalink
Avoid lookup on non-existent remote endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
thesprockee committed Jan 27, 2024
1 parent 338c113 commit dd76e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EchoRelay.Core/Server/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public async Task Start(CancellationTokenSource? cancellationTokenSource = null)
listenerContext.Response.StatusCode = (int)HttpStatusCode.BadRequest;
listenerContext.Response.Close();

Log.Warning("Received a non-websocket request from {RemoteEndPoint}", listenerContext.Request.RemoteEndPoint);
Log.Warning("Received a non-websocket request");

// Do not accept this client.
continue;
Expand Down

0 comments on commit dd76e9a

Please sign in to comment.