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

Fixed DNS resolution in OutgoingSelector #2285

Merged
merged 11 commits into from
Mar 1, 2024

Conversation

Razz4780
Copy link
Contributor

@Razz4780 Razz4780 commented Mar 1, 2024

Closes #2283

When the user app wants to initiate an outgoing connection, all outgoing filters are resolved in order to determine whether the connection should be done remotely or locally. The issue was that all resolution failures were treated as fatal errors (and were aborting the connect call). This PR filters out resolution errors which mean only that the name does not map to any known IP address (which is the case when the user puts a non-existent host in the filter).

Also, this PR adds a GetAddrInfoResponse cache on the internal proxy level. No need to do multiple dns queries each time an outgoing connection is initiated

Copy link
Member

@meowjesty meowjesty left a comment

Choose a reason for hiding this comment

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

YADI®

mirrord/intproxy/src/proxies/simple.rs Outdated Show resolved Hide resolved
mirrord/intproxy/src/proxies/simple.rs Show resolved Hide resolved
changelog.d/2283.fixed.md Outdated Show resolved Hide resolved
Razz4780 and others added 2 commits March 1, 2024 17:22
Co-authored-by: meowjesty <43983236+meowjesty@users.noreply.github.com>
Copy link
Member

@meowjesty meowjesty left a comment

Choose a reason for hiding this comment

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

👍

@Razz4780 Razz4780 added this pull request to the merge queue Mar 1, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 1, 2024
@Razz4780 Razz4780 added this pull request to the merge queue Mar 1, 2024
Merged via the queue into metalbear-co:main with commit 637b21e Mar 1, 2024
16 checks passed
@Razz4780 Razz4780 deleted the issue2283 branch March 1, 2024 20:31
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.

Outgoing local filter breaks all outgoing connections
2 participants