mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 14:00:29 +00:00
Strip IPv6 scopes from container metadata (#596)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user