Closed belidzs closed 2 years ago
@belidzs Thanks for the feedback, someone also mentioned this issue #140, it is due to the API https://api.ip.sb/ip
blocking requests without user-agent
. Later I'll change the default config file and use https://api.ipify.org/
as the default API.
Same happened to me, I'm using https://ifconfig.co now.
Updated the default API in the config file and README.
Describe the bug
As of this morning godns started reporting issues with determining my public IP, so it's reverting to the interface IP address instead.
Curiously, changing
ip_url
to https://api.ipify.org resolves this issue. I can access both URLs from my desktop computer using the same network, and both services seem to provide the exact same response.I suspect this has something to do with the SSL layer which I unfortunately couldn't confirm by raising godns' log level.
The frequency of this issue
Steps to Reproduce
"ip_url": "https://api.ip.sb/ip"
Your GoDNS configuration
Expected behavior
Screenshots
N/A
Environment (please complete the following information):
Additional context