mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
Fix the previous fix
This commit is contained in:
parent
4e3a24e609
commit
cd574c87ef
@ -20,7 +20,10 @@ const subdomain = allowedSubdomains => {
|
|||||||
const actual_subdomain = require('../helpers').subdomain(req);
|
const actual_subdomain = require('../helpers').subdomain(req);
|
||||||
if ( ! allowedSubdomains.includes(actual_subdomain) ) {
|
if ( ! allowedSubdomains.includes(actual_subdomain) ) {
|
||||||
next('route');
|
next('route');
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
next();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user