mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-04-14 04:38:28 +10:00
connectStatusStream updated credential state silently — no log on first frame or value changes. After restart, external credentials get usage via stream before any request, so pollIfStale skips them and no usage log ever appears. Add the same change-detection log to connectStatusStream. Also remove redundant isFirstUpdate guards from pollUsage and updateStateFromHeaders: when old values are zero, any non-zero new value already satisfies the integer-percent comparison.