1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-21 07:29:37 +01:00

fix: remove req.host deprecation warning (#3921)

This commit is contained in:
Juan Picado 2023-07-09 10:26:36 +02:00 committed by GitHub
parent 971d500c6e
commit 4be19db0c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -83,7 +83,7 @@ export default function (route: Router, auth: Auth, storage: Storage, config: Co
{
protocol: req.protocol,
headers: req.headers as any,
host: req.host,
host: req.hostname,
remoteAddress: req.socket.remoteAddress,
},
config.url_prefix