From c4dfcd4c1a998cc7eb5be61ef7c2e5dbb65dfcff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E6=89=87=E6=BB=91=E7=BF=94=E7=BF=BC?= Date: Mon, 1 Jun 2026 09:30:40 +0800 Subject: [PATCH] Burst observatory: Fix init check (#6221) https://github.com/XTLS/Xray-core/pull/6106#issuecomment-4587975865 --- app/observatory/burst/healthping.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/observatory/burst/healthping.go b/app/observatory/burst/healthping.go index d57f51e8..b5cc021f 100644 --- a/app/observatory/burst/healthping.go +++ b/app/observatory/burst/healthping.go @@ -96,6 +96,16 @@ func (h *HealthPing) StartScheduler(selector func() ([]string, error)) { ticker := time.NewTicker(interval) h.ticker = ticker + // init run to get a fast check result + go func() { + tags, err := selector() + if err != nil { + errors.LogWarning(h.ctx, "error select outbounds for initial health check: ", err) + return + } + h.Check(tags) + }() + go func() { for { go func() {