Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lookup_self_v6 #55

Merged
merged 5 commits into from
Jan 22, 2024
Merged

Add lookup_self_v6 #55

merged 5 commits into from
Jan 22, 2024

Conversation

talhahwahla
Copy link
Contributor

No description provided.

@talhahwahla
Copy link
Contributor Author

Testing in v6 env

lookup result: IpDetails { ip: "2a01:4f9:c010:a3ff::1", hostname: None, city: "Helsinki", region: "Uusimaa", country: "FI", country_name: Some("Finland"), is_eu: Some(true), country_flag: Some(CountryFlag { emoji: "🇫🇮", unicode: "U+1F1EB U+1F1EE" }), country_flag_url: Some("https://cdn.ipinfo.io/static/images/countries-flags/FI.svg"), country_currency: Some(CountryCurrency { code: "EUR", symbol: "€" }), continent: Some(Continent { code: "EU", name: "Europe" }), loc: "60.1695,24.9354", org: Some("AS24940 Hetzner Online GmbH"), postal: Some("00100"), timezone: Some("Europe/Helsinki"), asn: Some(AsnDetails { asn: "AS24940", name: "Hetzner Online GmbH", domain: "hetzner.de", route: "2a01:4f9::/32", asn_type: "hosting" }), company: Some(CompanyDetails { name: "Hetzner Online GmbH", domain: "hetzner.com", company_type: "hosting" }), carrier: None, privacy: Some(PrivacyDetails { vpn: false, proxy: false, tor: false, relay: false, hosting: true, service: "" }), abuse: Some(AbuseDetails { address: "Hetzner Online GmbH, Industriestrasse 25, D-91710 Gunzenhausen, Germany", country: "DE", email: "[email protected]", name: "Hetzner Online GmbH - Contact Role", network: "2a01:4f9:c010::/48", phone: "+49 9831 505-0" }), domains: Some(DomainsDetails { ip: None, total: 0, domains: [] }), bogon: None, extra: {} }

@talhahwahla
Copy link
Contributor Author

I think I incorrectly concluded here that we are allowing client level configurability in our Go SDK; doesn't seem to be the case after a closer look. So going with the suggestion here to just remove input parameter and rename. @UmanShahzad

@talhahwahla talhahwahla marked this pull request as ready for review January 22, 2024 01:35
Copy link
Contributor

@Alextopher Alextopher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're adding lookup_self_v6 can we add the mirrored lookup_self_v4?

src/ipinfo.rs Outdated
self._lookup(ip, BASE_URL).await
}

// Lookup your own v6 IP
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be made into a doc comment? With sufficient explanation of purpose and limitations.

@talhahwahla
Copy link
Contributor Author

cc @Alextopher

@talhahwahla talhahwahla requested review from Alextopher and UmanShahzad and removed request for Alextopher January 22, 2024 01:46
@UmanShahzad UmanShahzad merged commit 0a2eeac into master Jan 22, 2024
1 check passed
@talhahwahla talhahwahla deleted the talhahwahla/ipv6-support branch January 22, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants