Make it use req.hostname instead of raw host to prevent port addition on url return (#22)

This commit is contained in:
duel0213
2026-09-09 22:27:00 +09:00
committed by GitHub
parent 994c21866a
commit d4641c0c86

View File

@@ -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);
}