Merge pull request #118 from binaryoverload/dev

This commit is contained in:
Jonathan Barrow
2024-09-25 10:15:11 -04:00
committed by GitHub

View File

@@ -5,7 +5,7 @@ export function restrictHostnames<TFn extends express.Router>(
fn: TFn
): (request: express.Request, response: express.Response, next: () => void) => void | TFn {
return (request: express.Request, response: express.Response, next: () => void) => {
if (!allowedHostnames.includes(request.hostname)) {
if (allowedHostnames.includes(request.hostname)) {
return fn(request, response, next);
}