feat(publicip/http): add api64.ipify.org

This commit is contained in:
Quentin McGaw
2024-01-31 14:01:17 +00:00
parent 621c3a13be
commit 816406dc41
2 changed files with 3 additions and 1 deletions

View File

@@ -82,6 +82,8 @@ func (provider Provider) url(version ipversion.IPVersion) (url string, ok bool)
case ipversion.IP4or6:
switch provider { //nolint:exhaustive
case Ipify:
url = "https://api64.ipify.org"
case Google:
url = "https://domains.google.com/checkip"
case Ifconfig:

View File

@@ -19,7 +19,7 @@ func Test_ListProvidersForVersion(t *testing.T) {
}{
"ip4or6": {
version: ipversion.IP4or6,
providers: []Provider{Google, Ifconfig, Ipinfo},
providers: []Provider{Google, Ifconfig, Ipify, Ipinfo},
},
"ip4": {
version: ipversion.IP4,