mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-04-05 08:54:09 -04:00
feat(publicip/http): add api64.ipify.org
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user