Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Fallback lookup when ident.me is down. #8

Open
lightlike opened this issue Mar 1, 2024 · 0 comments
Open

[Feature Request] Fallback lookup when ident.me is down. #8

lightlike opened this issue Mar 1, 2024 · 0 comments

Comments

@lightlike
Copy link

lightlike commented Mar 1, 2024

ident.me was down for about a day and the container is throwing the following error.

Warning: file_get_contents(http://v4.ident.me): Failed to open stream: Connection refused in /app/updater.php on line 12
Fatal error: Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, bool given in /app/updater.php:12
Stack trace:
#0 /app/updater.php(12): trim(false)
}
  thrown in /app/updater.php on line 12

It would be nice to have 1 or 2 fallback sites.
ident.merecommends this as well (see: https://api.ident.me/#redundancy-alternatives)

A drop in replacement would be tnedi.me.
This might also be a good starting point for this: https://gist.github.com/rkalkani/7428a8769f7cc6710c58680938dc5833

I can try to write some code for that if you want but I am no PHP Developer.
My code would probably just be a try catch that follows up with a request to tnedi.me.

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

No branches or pull requests

1 participant