mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-05 06:09:57 +01:00
Added missing period in allowed hostname chars
Allowed hostname chars should include A-Za-z0-9-. based on https://man7.org/linux/man-pages/man7/hostname.7.html
This commit is contained in:
@@ -66,7 +66,7 @@ module.exports = function (middleware) {
|
||||
}
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
headers['X-Upstream-Hostname'] = os.hostname().replace(/[^0-9A-Za-z-]/g, '');
|
||||
headers['X-Upstream-Hostname'] = os.hostname().replace(/[^0-9A-Za-z-.]/g, '');
|
||||
}
|
||||
|
||||
for (const [key, value] of Object.entries(headers)) {
|
||||
|
||||
Reference in New Issue
Block a user