-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
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: {} } |
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 |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
cc @Alextopher |
No description provided.