Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

ERROR: Failed To Get Public IPv4 Address #78

Open
MilkTeaNo7 opened this issue Aug 31, 2021 · 1 comment
Open

ERROR: Failed To Get Public IPv4 Address #78

MilkTeaNo7 opened this issue Aug 31, 2021 · 1 comment

Comments

@MilkTeaNo7
Copy link

MilkTeaNo7 commented Aug 31, 2021

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!

@piloer
Copy link

piloer commented Oct 2, 2021

Go to /app/cloudflare.sh in the container

found

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

Replace

curl -sf4 https://ipconfig.io 

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants