Skip to content

[client] Refactor DNSForwarder to improve handle wildcard domain resource id matching #3651

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 15, 2025

Conversation

hakansa
Copy link
Member

@hakansa hakansa commented Apr 10, 2025

[client] Refactor DNSForwarder to improve handle wildcard domain resource id matching

Describe your changes

Issue ticket number and link

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

@Copilot Copilot AI review requested due to automatic review settings April 10, 2025 09:04
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

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

Comments suppressed due to low confidence (1)

client/internal/dnsfwd/forwarder.go:210

  • Ensure that the keys in f.resId are always strings or use safe type assertions to avoid potential runtime panics.
keyStr := key.(string)

@hakansa hakansa merged commit 51bb52c into main Apr 15, 2025
31 of 32 checks passed
@hakansa hakansa deleted the feat/wildcard-domain-resid branch April 15, 2025 07:54
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