mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-09-29 13:47:57 -05:00
Merge pull request #118 from binaryoverload/dev
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user