pref: update myip api
This commit is contained in:
parent
2bbf6a6adb
commit
65b25e7ef3
@ -1,5 +1,5 @@
|
||||
import { NextRequest, NextResponse } from "next/server"
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
|
||||
export async function GET(request: NextRequest) {
|
||||
return NextResponse.json(request.ip + "")
|
||||
return NextResponse.json(request.headers.get('X-Forwarded-For'))
|
||||
}
|
Loading…
Reference in New Issue
Block a user