Update middleware/midware.js
Browse files- middleware/midware.js +0 -2
middleware/midware.js
CHANGED
@@ -11,7 +11,6 @@ class CheckMilWare {
|
|
11 |
const xForwardedFor = req.headers['x-forwarded-for'];
|
12 |
const xRealIP = req.headers['x-real-ip'];
|
13 |
const cfConnectingIP = req.headers['cf-connecting-ip'];
|
14 |
-
const XproxiedPath = req.headers['x-proxied-path'];
|
15 |
let realIP = req.ip;
|
16 |
|
17 |
if (xForwardedFor) {
|
@@ -36,7 +35,6 @@ class CheckMilWare {
|
|
36 |
}
|
37 |
console.log(`Real IP address is: ${realIP}
|
38 |
path method: ${req.path}
|
39 |
-
full method: ${XproxiedPath}
|
40 |
header used: ${xForwardedFor ? "x-forwarded-for" : xRealIP ? "x-real-ip" : cfConnectingIP ? "cf-connecting-ip" : "req.ip"}
|
41 |
`);
|
42 |
|
|
|
11 |
const xForwardedFor = req.headers['x-forwarded-for'];
|
12 |
const xRealIP = req.headers['x-real-ip'];
|
13 |
const cfConnectingIP = req.headers['cf-connecting-ip'];
|
|
|
14 |
let realIP = req.ip;
|
15 |
|
16 |
if (xForwardedFor) {
|
|
|
35 |
}
|
36 |
console.log(`Real IP address is: ${realIP}
|
37 |
path method: ${req.path}
|
|
|
38 |
header used: ${xForwardedFor ? "x-forwarded-for" : xRealIP ? "x-real-ip" : cfConnectingIP ? "cf-connecting-ip" : "req.ip"}
|
39 |
`);
|
40 |
|