diff --git a/app/api/lookupIp/route.ts b/app/api/lookupIp/route.ts index 95de320..5d6a9d0 100644 --- a/app/api/lookupIp/route.ts +++ b/app/api/lookupIp/route.ts @@ -70,7 +70,7 @@ const lookupReverse = async (ip: string): Promise => { const data = await response.json(); return data.Answer - ? data.Answer.map((record: { data: string }) => record.data) + ? data.Answer.map((record: { data: string }) => record.data.slice(0, -1)) : []; };