Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Strip IPv6 scopes from container metadata (#596)

rcourtmane76ab5eec0bc
diff --git a/internal/monitoring/monitor.go b/internal/monitoring/monitor.go
index 78b4f622d2..82b56d0053 100644
--- a/internal/monitoring/monitor.go
+++ b/internal/monitoring/monitor.go
@@ -2221,6 +2221,11 @@ func sanitizeGuestAddressStrings(value string) []string {
lower = strings.ToLower(value)
+ if idx := strings.Index(value, "%"); idx > 0 {
+ value = strings.TrimSpace(value[:idx])
+ lower = strings.ToLower(value)
+ }
+
if strings.HasPrefix(value, "127.") || strings.HasPrefix(lower, "0.0.0.0") {
return nil
}