Skip to content

Commit

Permalink
rename to lookup_self_v6
Browse files Browse the repository at this point in the history
  • Loading branch information
talhahwahla committed Jan 22, 2024
1 parent 3e7e363 commit 452ab5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ipinfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,9 @@ impl IpInfo {
self._lookup(ip, BASE_URL).await
}

pub async fn lookup_v6(&mut self, ip: &str) -> Result<IpDetails, IpError> {
self._lookup(ip, BASE_URL_V6).await
// Lookup your own v6 IP
pub async fn lookup_self_v6(&mut self) -> Result<IpDetails, IpError> {
self._lookup("", BASE_URL_V6).await
}

async fn _lookup(
Expand Down

0 comments on commit 452ab5e

Please sign in to comment.