Closed villor closed 3 years ago
@villor - ifinfo.io still works for me. are you sure it's unavailable? maybe something in your network is blocking it?
maybe we can do better by trying both of them?
@tunix - you are so right, it was my PiHole (DNS) blocking the requests. Now I feel stupid :man_facepalming: But yeah, trying both sounds like a good idea.
Would you amend your PR or should I do it?
I updated the script to try both. Please review the code as I'm not really experienced with sh-scripting.
Hi @villor ,
Sorry for my delayed response. Thank you for your updated patch! I have a better idea for trying multiple services to fetch from one of them so I'm closing this PR and will push the updated code shortly after.
I just set this up on a new computer and saw that the IP field was empty at all times. Turns out ipinfo.io is no longer available, so I replaced it with ifconfig.me.