mirror of
https://github.com/System-End/ip.git
synced 2026-04-19 22:05:07 +00:00
Don't access .address on a string...
This commit is contained in:
parent
e74617949b
commit
fa9c6fde6e
1 changed files with 1 additions and 1 deletions
2
index.ts
2
index.ts
|
|
@ -42,7 +42,7 @@ Bun.serve({
|
|||
const start = performance.now()
|
||||
const ip = req.headers.get("x-real-ip")
|
||||
console.log({ip, req})
|
||||
const [ipRes] = await q(ip.address)
|
||||
const [ipRes] = await q(ip)
|
||||
console.log(Math.round(performance.now() - start) + " ms")
|
||||
return Response.json(ipRes)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue