mirror of
https://github.com/qdm12/gluetun.git
synced 2026-06-19 09:54:09 +02:00
hotfix(publicip): return an error if trying to use cloudflare as ip provider for updating servers data
This commit is contained in:
@@ -20,6 +20,14 @@ func newIfConfigCo(client *http.Client) *ifConfigCo {
|
||||
}
|
||||
}
|
||||
|
||||
func (i *ifConfigCo) String() string {
|
||||
return string(IfConfigCo)
|
||||
}
|
||||
|
||||
func (i *ifConfigCo) CanFetchAnyIP() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// FetchInfo obtains information on the ip address provided
|
||||
// using the ifconfig.co/json 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