Skip to content

fix(snmp): support IPv6 in ICMP health check ping#1422

Merged
kongfei605 merged 2 commits into
flashcatcloud:mainfrom
kongfei605:snmp_up
Apr 9, 2026
Merged

fix(snmp): support IPv6 in ICMP health check ping#1422
kongfei605 merged 2 commits into
flashcatcloud:mainfrom
kongfei605:snmp_up

Conversation

@kongfei605

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings April 9, 2026 03:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds IPv6-aware handling to the SNMP input’s ICMP “up” health check so ping RTT checks can work with IPv6 targets.

Changes:

  • Normalize bracketed IPv6 literals before resolving (e.g., [::1]).
  • Choose ICMP resolve network (ip4:icmp vs ip6:ipv6-icmp) based on the parsed IP type before calling net.ResolveIPAddr.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread inputs/snmp/instances.go Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread inputs/snmp/instances.go
@kongfei605 kongfei605 merged commit 3df2f7a into flashcatcloud:main Apr 9, 2026
6 of 7 checks passed
@kongfei605 kongfei605 deleted the snmp_up branch April 9, 2026 04:01
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.

2 participants