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

Resolve DnsEndPoint in UdpConnection #1457

Merged
merged 1 commit into from
Oct 20, 2024
Merged

Resolve DnsEndPoint in UdpConnection #1457

merged 1 commit into from
Oct 20, 2024

Conversation

xPaw
Copy link
Member

@xPaw xPaw commented Oct 18, 2024

I changed Steam directory api to return DNS servers recently in #1422, and it works fine for TCP connections, but UDP connections throw that they can't send a packet to a DNS endpoint.

I also removed manual resolution of DNS for default server in #1452.

@xPaw xPaw added the bug label Oct 18, 2024
@xPaw xPaw added this to the 3.0.0 milestone Oct 18, 2024
throw new ArgumentException("Failed to resolve given dns endpoint.", nameof(endPoint));
}

endPoint = new IPEndPoint(resolved[0], dnsEndPoint.Port);
Copy link
Member

Choose a reason for hiding this comment

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

Should we select random if it resolves to multiple hosts?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not really expecting UDP servers to live for long, so I don't care too much 🤣

Copy link
Member

Choose a reason for hiding this comment

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

lol valid

@xPaw xPaw merged commit f5e66a3 into master Oct 20, 2024
15 checks passed
@xPaw xPaw deleted the udp-dns-resolve branch October 20, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants