Skip to content
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

feat: use resolved ports in dns interceptor #3786

Merged
merged 5 commits into from
Nov 6, 2024

Conversation

luddd3
Copy link
Contributor

@luddd3 luddd3 commented Oct 29, 2024

This relates to...

DNS interceptor

Rationale

Support custom functions that resolve both IP addresses and ports. It can be used e.g. with dns.resolveSrv followed by
dns.resolve.

Changes

Change priority of the port used to:

  1. Resolved address port
  2. Origin port
  3. Default protocol port

Features

Use port on resolved address.

Bug Fixes

Breaking Changes and Deprecations

Status

Support custom functions that resolve e.g. SRV records with ports
test/interceptors/dns.js Outdated Show resolved Hide resolved
test/interceptors/dns.js Outdated Show resolved Hide resolved
@luddd3 luddd3 requested a review from metcoder95 October 30, 2024 05:32
@metcoder95 metcoder95 merged commit 45c3259 into nodejs:main Nov 6, 2024
32 of 36 checks passed
flakey5 pushed a commit to flakey5/undici that referenced this pull request Nov 14, 2024
Co-authored-by: Carlos Fuentes <me@metcoder.dev>
@github-actions github-actions bot mentioned this pull request Dec 3, 2024
@github-actions github-actions bot mentioned this pull request Dec 16, 2024
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