docker-cloudflare-ddns icon indicating copy to clipboard operation
docker-cloudflare-ddns copied to clipboard

ERROR: Failed To Get Public IPv4 Address

Open MilkTeaNo7 opened this issue 3 years ago • 1 comments

I use docker to create command as follows.

docker run
-e API_KEY=I-y2XXXSPXXcDXXJXXXWJ
-e ZONE=baidu.top
-e RRTYPE=A
--network host
oznu/cloudflare-ddns

But it always prompts that I can't get the IPV4 address, but when I use a proxy, I can get the IP address, but not the real one.

This problem may be that a domain name is blocked by a telecom operator, I do not know how to deal with it

Thank you for your help!

MilkTeaNo7 avatar Aug 31 '21 23:08 MilkTeaNo7

Go to /app/cloudflare.sh in the container

found

curl -sf4 https://ipinfo.io | jq -r '.ip'

Replace

curl -sf4 https://ipconfig.io 

piloer avatar Oct 02 '21 07:10 piloer