Skip to content

Commit

Permalink
Merge branch 'master' into talhahwahla/ipv6-support
Browse files Browse the repository at this point in the history
  • Loading branch information
talhahwahla committed Jan 22, 2024
2 parents 452ab5e + e085dd3 commit 7a0a8cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ipinfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ impl Default for IpInfoConfig {

/// IPinfo requests context structure.
pub struct IpInfo {
url: String,
token: Option<String>,
client: reqwest::Client,
cache: LruCache<String, IpDetails>,
Expand Down Expand Up @@ -119,7 +120,10 @@ impl IpInfo {
let client =
reqwest::Client::builder().timeout(config.timeout).build()?;

let url = "https://ipinfo.io".to_owned();

let mut ipinfo_obj = Self {
url,
client,
token: config.token,
cache: LruCache::new(
Expand Down

0 comments on commit 7a0a8cd

Please sign in to comment.