mirror of
https://github.com/asphyxia-core/core.git
synced 2026-12-05 07:26:20 -06:00
Make it use req.hostname instead of raw host to prevent port addition on url return (#22)
This commit is contained in:
@@ -200,7 +200,7 @@ export const EamuseRoute = (router: EamuseRootRouter): RequestHandler => {
|
||||
|
||||
(info as any).host = forwardedHost
|
||||
? stripPort(forwardedHost)
|
||||
: req.get('host') || req.hostname;
|
||||
: req.hostname;
|
||||
(info as any).protocol = forwardedProto || req.protocol;
|
||||
(info as any).proxy = Boolean(forwardedHost || forwardedProto);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user