hotfix(publicip): return an error if trying to use cloudflare as ip provider for updating servers data
This commit is contained in:
@@ -22,6 +22,14 @@ func newCloudflare(client *http.Client) *cloudflare {
|
||||
}
|
||||
}
|
||||
|
||||
func (c *cloudflare) String() string {
|
||||
return string(Cloudflare)
|
||||
}
|
||||
|
||||
func (c *cloudflare) CanFetchAnyIP() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// FetchInfo obtains information on the public IP address of the machine,
|
||||
// and returns an error if the `ip` argument is set since the Cloudflare API
|
||||
// can only be used to provide details about the current machine public IP.
|
||||
|
||||
Reference in New Issue
Block a user