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:
parent
971d500c6e
commit
4be19db0c1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user