fix: egress cache key mismatch between source and collection preview

Add _sourceAlias and _previewId to the skip list in egressCacheKey so
that nodes from source preview (with _sourceAlias) and collection
preview (without _sourceAlias, after rename) produce the same cache
key. This ensures egress info cached during source-level probe is
visible when expanding collection cards.
This commit is contained in:
2026-07-29 13:29:07 +08:00
parent ca1f20b3f3
commit cc38a6f0ba
+2 -1
View File
@@ -78,7 +78,8 @@ func (d *Deps) HandleEgressInfo(c fiber.Ctx) error {
func egressCacheKey(node model.ProxyNode) string {
clean := model.ProxyNode{}
skip := map[string]bool{
"id": true, "name": true, "latencyMs": true, "latencyError": true,
"id": true, "name": true, "_sourceAlias": true, "_previewId": true,
"latencyMs": true, "latencyError": true,
"egressIp": true, "egressCountry": true, "egressRegion": true, "egressError": true,
"country": true, "region": true, "city": true, "isp": true, "cached": true,
}