mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-09 20:29:23 +02:00
hotfix(publicip): return an error if trying to use cloudflare as ip provider for updating servers data
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user