diff --git a/src/app/page.tsx b/src/app/page.tsx index b99b2af..94ad72f 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -10,7 +10,9 @@ interface Myip { } export default function Home() { - const { data } = useSWR("/api/ip/myip", fetcher) + const { data: http4 } = useSWR("http://4.ipv6test.online/ip/myip", fetcher) + const { data: http6 } = useSWR("http://4.ipv6test.online/ip/myip", fetcher) + return (
@@ -20,8 +22,8 @@ export default function Home() {
-

IPv4 {data?.address}

-

IPv6 {data?.address}

+

IPv4 {http4?.address}

+

IPv6 {http6?.address}

{/* */}