chore: migrate all URLs to git.jskdjs.cn, drop GitHub-specific distribution
This commit is contained in:
+3
-8
@@ -24,12 +24,7 @@ telemetry_is_enabled() {
|
||||
|
||||
telemetry_send() {
|
||||
telemetry_is_enabled || return 0
|
||||
local event="$1"
|
||||
local data="${2:-{}}"
|
||||
local url="https://runaway-telemetry.mateussiqueira.workers.dev/event"
|
||||
local payload
|
||||
payload=$(printf '{"event":"%s","version":"%s","arch":"%s","os":"%s","data":%s}' \
|
||||
"$event" "$VERSION" "$(uname -m)" "$(uname -s)" "$data")
|
||||
curl -s -o /dev/null -w "" -H "Content-Type: application/json" \
|
||||
-d "$payload" "$url" 2>/dev/null || true
|
||||
# Upstream telemetry collector removed in this fork; nothing is sent.
|
||||
# Kept as a no-op so opt-in state and call sites keep working.
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user