From 6bf1959d7d0c3fc905372ac8e9b72cdabebadfec Mon Sep 17 00:00:00 2001 From: IP2Location Date: Fri, 6 Sep 2024 09:23:33 +0800 Subject: [PATCH] Added IP2Location.io endpoint for public IP (#248) --- configs/config_sample.json | 6 ++++-- configs/config_sample.yaml | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/configs/config_sample.json b/configs/config_sample.json index 8fa59c7a..316ba8a8 100644 --- a/configs/config_sample.json +++ b/configs/config_sample.json @@ -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, diff --git a/configs/config_sample.yaml b/configs/config_sample.yaml index f22935a8..9633cf88 100644 --- a/configs/config_sample.yaml +++ b/configs/config_sample.yaml @@ -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