From 0a2a8d3992415b7245da2745f797136a666e9d96 Mon Sep 17 00:00:00 2001 From: daniel-j Date: Sat, 14 Aug 2021 18:17:28 +0200 Subject: [PATCH] print ips --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index c74b119..142ced3 100644 --- a/index.js +++ b/index.js @@ -112,7 +112,7 @@ router.post('/generate', async ctx => { let key = null let attempts = 0 console.log('There are currently', ctx.keys.size, 'key(s) in use.') - console.log('Generating unique key...', agent) + console.log('Generating unique key...', ctx.ip, agent) do { key = randomKey() if (attempts > ctx.keys.size) { @@ -341,7 +341,7 @@ router.get('/receive', async ctx => { router.get('/', async ctx => { const agent = ctx.get('user-agent') - console.log(agent) + console.log(ctx.ip, agent) await sendfile(ctx, agent.includes('Kobo') || agent.includes('Kindle')? 'download.html' : 'upload.html') })