We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5498c1 commit f451411Copy full SHA for f451411
poc/tlauncher_server_check
@@ -0,0 +1,8 @@
1
+#!/usr/bin/env nix-shell
2
+#! nix-shell -i bash -p curl jq
3
+
4
+curl "https://repo.tlauncher.org/update/downloads/configs/servers.json" 2> /dev/null | grep 'address' | sed 's/^[^:]*: "\([^":]*\)[^$]*$/\1/g' | tr '[:upper:]' '[:lower:]' | sort | uniq | while read -r line; do
5
+ ping "$line" -c 1 > /dev/null 2> /dev/null && printf "OK" || printf "FAIL"
6
+ printf " $line"
7
+ printf "\n"
8
+done
0 commit comments