docker-cloudflare-ddns
docker-cloudflare-ddns copied to clipboard
ERROR: Failed To Get Public IPv4 Address
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!
Go to /app/cloudflare.sh in the container
found
curl -sf4 https://ipinfo.io | jq -r '.ip'
Replace
curl -sf4 https://ipconfig.io