From 270f93ba044f5e834a5c523ddf16cf21930a5818 Mon Sep 17 00:00:00 2001 From: zombieb Date: Thu, 1 Jan 2026 00:49:42 -0500 Subject: [PATCH] asdf --- main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.ts b/main.ts index 1bcbec6..38a24be 100644 --- a/main.ts +++ b/main.ts @@ -27,7 +27,7 @@ Deno.serve({ hostname: NET_HOST, port: NET_PORT, onListen: addr => console.log(`Listening on http://${addr.hostname}:${addr.port}`) -}, req => { +}, (req, addr) => { const notFound = new Response("Not Found. Did you try thinking Miku?", { status: 404, statusText: "Not Found (oo-ee-oo)", @@ -40,7 +40,7 @@ Deno.serve({ const mapping = mappings.find(val => val.endpoints.some(val => url.pathname === val)); - console.log(`${req.method} ${url.pathname} | mapping exists: ${typeof mapping !== 'undefined'}`); + console.log(`${addr.remoteAddr.hostname}:${addr.remoteAddr.port} ${req.method} ${url.pathname} | mapping exists: ${typeof mapping !== 'undefined'}`); return new Promise(resolve => { if (mapping) { Deno.readFile(path.join(WEB_ROOT, mapping.path)).then(data => {