Update index.js
Browse files
index.js
CHANGED
@@ -111,7 +111,7 @@ app.use(async (req, res, next) => {
|
|
111 |
}
|
112 |
await IPAddressAndUpdate(realIP);
|
113 |
console.log(`Real IP address is: ${realIP}, header: ${xForwardedFor ? "x-forwarded-for" : xRealIP ? "x-real-ip" : cfConnectingIP ? "cf-connecting-ip" : "req.ip"} `);
|
114 |
-
next();
|
115 |
});
|
116 |
|
117 |
app.get('/api/test', async (req, res) => {
|
|
|
111 |
}
|
112 |
await IPAddressAndUpdate(realIP);
|
113 |
console.log(`Real IP address is: ${realIP}, header: ${xForwardedFor ? "x-forwarded-for" : xRealIP ? "x-real-ip" : cfConnectingIP ? "cf-connecting-ip" : "req.ip"} `);
|
114 |
+
await next();
|
115 |
});
|
116 |
|
117 |
app.get('/api/test', async (req, res) => {
|