mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-20 01:01:20 +00:00
Strip IPv6 scopes from container metadata (#596)
This commit is contained in:
parent
a885fb5472
commit
e76ab5eec0
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue