-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[c#] support IPv6 ports as well #14913
base: trunk
Are you sure you want to change the base?
Conversation
This reverts commit f17dd08dd32998a310510f0abc44e5b484202a4d.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
We have to carefully test it. What I see as potential issues:
It will be really nice if we can test it in different environment: |
I believe the Chrome driver will resolve to I am not familiar with C# so I am not sure how can I test in different environment. |
I believe but don't trust.
|
User description
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Fixes #14910
Motivation and Context
Add support for IPv6 if IPv4 cannot be used. This is achieved by enabling dual-stack socket which accepts both IPv4 and IPv6.
Types of changes
Checklist
PR Type
Bug fix
Description
FindFreePort
method to useAddressFamily.InterNetworkV6
instead ofAddressFamily.InterNetwork
IPv6Only = false
to ensure backward compatibility with IPv4Changes walkthrough 📝
PortUtilities.cs
Enable dual-stack socket support for IPv4 and IPv6
dotnet/src/webdriver/Internal/PortUtilities.cs