diff --git a/src/app/api/myip/route.ts b/src/app/api/myip/route.ts index 188c997..6e8020b 100644 --- a/src/app/api/myip/route.ts +++ b/src/app/api/myip/route.ts @@ -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')) } \ No newline at end of file