Update plugins/alldownloader.js
Browse files- plugins/alldownloader.js +2 -2
plugins/alldownloader.js
CHANGED
@@ -711,6 +711,7 @@ AllDlRoutes.get('/api/v1/dl/tiktok-v2', authenticateApiKey, apiLimiter, async (r
|
|
711 |
try {
|
712 |
const apiKey = req.headers['x-api-key'];
|
713 |
const xRealIP = req.headers['x-real-ip'];
|
|
|
714 |
const keyDoc = await db.findOne({key: apiKey});
|
715 |
|
716 |
if (!keyDoc) {
|
@@ -725,8 +726,7 @@ AllDlRoutes.get('/api/v1/dl/tiktok-v2', authenticateApiKey, apiLimiter, async (r
|
|
725 |
await TelegramUseLog(
|
726 |
keyDoc.owner,
|
727 |
keyDoc.key,
|
728 |
-
`Accessed: ${req.path}`,
|
729 |
-
xRealIP
|
730 |
);
|
731 |
|
732 |
const results = await tiktokdl(url);
|
|
|
711 |
try {
|
712 |
const apiKey = req.headers['x-api-key'];
|
713 |
const xRealIP = req.headers['x-real-ip'];
|
714 |
+
const userAgent = req.headers['user-agent'];
|
715 |
const keyDoc = await db.findOne({key: apiKey});
|
716 |
|
717 |
if (!keyDoc) {
|
|
|
726 |
await TelegramUseLog(
|
727 |
keyDoc.owner,
|
728 |
keyDoc.key,
|
729 |
+
`Accessed: ${req.path}\nXRealIP: ${xRealIP}\nHrds: ${userAgent}`,
|
|
|
730 |
);
|
731 |
|
732 |
const results = await tiktokdl(url);
|