change cloudflare logging

This commit is contained in:
HF 2020-01-04 14:19:34 +01:00
parent 1e76ced03a
commit 4ca032e816

View File

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