forked from ppfun/pixelplanet
change cloudflare logging
This commit is contained in:
parent
1e76ced03a
commit
4ca032e816
|
@ -25,7 +25,7 @@ export async function getIPFromRequest(req): ?string {
|
|||
const conip = (connection ? connection.remoteAddress : socket.remoteAddress);
|
||||
|
||||
if (!headers['x-forwarded-for'] || !isTrustedProxy(conip)) {
|
||||
logger.warn('Connection not going through nginx and cloudflare! IP:', conip, headers);
|
||||
logger.warn(`Connection not going through nginx and cloudflare! IP: ${conip}`, headers);
|
||||
return conip;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user