mirror of
https://github.com/System-End/ip.git
synced 2026-04-19 19:45:06 +00:00
Log req
This commit is contained in:
parent
f4a002c0a2
commit
8e9b9eda40
1 changed files with 1 additions and 1 deletions
2
index.ts
2
index.ts
|
|
@ -41,7 +41,7 @@ Bun.serve({
|
||||||
"/ip": async (req, server) => {
|
"/ip": async (req, server) => {
|
||||||
const start = performance.now()
|
const start = performance.now()
|
||||||
const ip = server.requestIP(req)
|
const ip = server.requestIP(req)
|
||||||
console.log({ip})
|
console.log({ip, req})
|
||||||
const [ipRes] = await q(ip.address)
|
const [ipRes] = await q(ip.address)
|
||||||
console.log(Math.round(performance.now() - start) + " ms")
|
console.log(Math.round(performance.now() - start) + " ms")
|
||||||
return Response.json(ipRes)
|
return Response.json(ipRes)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue