pref: update myip api

This commit is contained in:
thehrz 2024-08-17 00:03:24 +08:00
parent 2bbf6a6adb
commit 65b25e7ef3
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855

View File

@ -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'))
}