Skip to content

fix: check net.ParseIP result in K8sResolver to prevent nil IP#149

Open
Aprazor wants to merge 1 commit intoczerwonk:mainfrom
Aprazor:fix/k8s-resolver-nil-ip-check
Open

fix: check net.ParseIP result in K8sResolver to prevent nil IP#149
Aprazor wants to merge 1 commit intoczerwonk:mainfrom
Aprazor:fix/k8s-resolver-nil-ip-check

Conversation

@Aprazor
Copy link
Copy Markdown

@Aprazor Aprazor commented Mar 20, 2026

If a Kubernetes Endpoint returns a malformed IP string, net.ParseIP
returns nil. A nil IP in the returned slice would cause unexpected
behavior downstream in the pinger. Skip invalid addresses.

If a Kubernetes Endpoint returns a malformed IP string, net.ParseIP
returns nil. A nil IP in the returned slice would cause unexpected
behavior downstream in the pinger. Skip invalid addresses.
@Aprazor Aprazor requested a review from czerwonk as a code owner March 20, 2026 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant