Skip to content

Commit 8747c26

Browse files
abdullahdevrelcdown
authored andcommitted
Added IPinfo.io
1 parent e6815b3 commit 8747c26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/http.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ static SERVICES: &[GeoIPService] = &[
3737
url: "https://ipwho.is/{ip}",
3838
tz_keys: &["timezone", "id"],
3939
},
40+
GeoIPService {
41+
url: "https://ipinfo.io/{ip}/json",
42+
tz_keys: &["timezone"],
43+
},
4044
];
4145

4246
/// Given &["foo", "bar", "baz"], retrieve the value at data["foo"]["bar"]["baz"].

0 commit comments

Comments
 (0)