Skip to content

Commit

Permalink
Added IP2Location.io endpoint for public IP (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
ip2location authored Sep 6, 2024
1 parent b33a76f commit 6bf1959
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions configs/config_sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@
"https://api4.ipify.org",
"https://myip.biturl.top",
"https://ipecho.net/plain",
"https://api-ipv4.ip.sb/ip"
"https://api-ipv4.ip.sb/ip",
"https://ip2location.io/ip"
],
"ipv6_urls": [
"https://api6.ipify.org",
"https://api-ipv6.ip.sb/ip"
"https://api-ipv6.ip.sb/ip",
"https://ip2location.io/ip"
],
"ip_type": "IPv4",
"interval": 300,
Expand Down
4 changes: 2 additions & 2 deletions configs/config_sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ domains:
sub_domains:
- www
- test
ip_urls: [https://api4.ipify.org, https://api-ipv4.ip.sb/ip]
ipv6_urls: [https://api6.ipify.org, https://api-ipv6.ip.sb/ip]
ip_urls: [https://api4.ipify.org, https://api-ipv4.ip.sb/ip, https://ip2location.io/ip]
ipv6_urls: [https://api6.ipify.org, https://api-ipv6.ip.sb/ip, https://ip2location.io/ip]
ip_type: IPv4
interval: 300
resolver: 8.8.8.8
Expand Down

0 comments on commit 6bf1959

Please sign in to comment.