Skip to content

cmd/devp2p: use isSubdomain for Cloudflare DNS record filtering#35291

Open
cuiweixie wants to merge 1 commit into
ethereum:masterfrom
cuiweixie:cmd/devp2p-cloudflare-is-subdomain
Open

cmd/devp2p: use isSubdomain for Cloudflare DNS record filtering#35291
cuiweixie wants to merge 1 commit into
ethereum:masterfrom
cuiweixie:cmd/devp2p-cloudflare-is-subdomain

Conversation

@cuiweixie

Copy link
Copy Markdown
Contributor

Summary

  • Replace strings.HasSuffix with isSubdomain when matching existing Cloudflare TXT records.
  • Avoids false positives on zone names that share a suffix.

Test plan

  • go test -short ./cmd/devp2p/

Replace strings.HasSuffix with isSubdomain when matching existing TXT
records, avoiding false positives on zone names that share a suffix.
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