403 instead of 404 on foreign bridge request

Closes #1114
This commit is contained in:
Jordan Brown
2020-10-13 11:21:50 -04:00
parent f18fa829a1
commit ea58b9af01
@@ -65,8 +65,8 @@ namespace Tgstation.Server.Host.Controllers
var remoteIP = Request.HttpContext.Connection.RemoteIpAddress;
if (!IPAddress.IsLoopback(remoteIP))
{
logger.LogTrace("Ignoring remote bridge request from {0}", remoteIP);
return NotFound();
logger.LogTrace("Rejecting remote bridge request from {0}", remoteIP);
return Forbid();
}
using (LogContext.PushProperty("Bridge", Interlocked.Increment(ref requestsProcessed)))