hotfix(publicip): return an error if trying to use cloudflare as ip provider for updating servers data

This commit is contained in:
Quentin McGaw
2024-10-11 21:55:03 +00:00
parent a7d70dd9a3
commit 2388e0550b
10 changed files with 50 additions and 2 deletions
+8
View File
@@ -24,6 +24,14 @@ func newIPInfo(client *http.Client, token string) *ipInfo {
}
}
func (i *ipInfo) String() string {
return string(IPInfo)
}
func (i *ipInfo) CanFetchAnyIP() bool {
return true
}
// FetchInfo obtains information on the ip address provided
// using the ipinfo.io API. If the ip is the zero value, the public IP address
// of the machine is used as the IP.