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

Use the IP address resolved by the transport #174

Closed
wants to merge 1 commit into from

Conversation

shreve
Copy link

@shreve shreve commented Dec 2, 2024

Hostname destination support fails because asyncio's DatagramTransport internally resolves hostnames to IP addresses and expects any call to sendto() to use that IP instead of the input hostname.

This commit recognizes that resolution may have happened and updates self.ip and self.port to match the resolved address.

Hostname destination support fails because asyncio's DatagramTransport
internally resolves hostnames to IP addresses and expects any call to
sendto() to use that IP instead of the input hostname.

This commit recognizes that resolution may have happened and updates
self.ip and self.port to match the resolved address.
@shreve shreve deleted the branch sbidy:master December 2, 2024 03:07
@shreve shreve closed this Dec 2, 2024
@shreve shreve deleted the master branch December 2, 2024 03:07
@shreve
Copy link
Author

shreve commented Dec 2, 2024

Sorry about the duplicate PR. It seems like the lint action breaks when a PR comes from a :master branch.

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