From 452ab5e1898fdcc62b0da9921bbbdfd788a63005 Mon Sep 17 00:00:00 2001 From: talhahwahla Date: Mon, 22 Jan 2024 06:10:46 +0500 Subject: [PATCH] rename to `lookup_self_v6` --- src/ipinfo.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ipinfo.rs b/src/ipinfo.rs index 170abac..a2870f4 100644 --- a/src/ipinfo.rs +++ b/src/ipinfo.rs @@ -306,8 +306,9 @@ impl IpInfo { self._lookup(ip, BASE_URL).await } - pub async fn lookup_v6(&mut self, ip: &str) -> Result { - self._lookup(ip, BASE_URL_V6).await + // Lookup your own v6 IP + pub async fn lookup_self_v6(&mut self) -> Result { + self._lookup("", BASE_URL_V6).await } async fn _lookup(