-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Expose a global switch to disable IPV6 #55012
Conversation
Tagging subscribers to this area: @dotnet/ncl Issue DetailsFixes #47583. Resolves #52287, #54807 and similar issues. Introduces an AppContext switch For consistency, this switch also impacts NameResolution and Ping, not only Sockets.
|
src/libraries/Common/src/System/Net/SocketProtocolSupportPal.cs
Outdated
Show resolved
Hide resolved
src/libraries/Common/src/System/Net/SocketProtocolSupportPal.cs
Outdated
Show resolved
Hide resolved
|
Fixes #47583. Resolves #52287, #54807 and similar issues, without changing customer application code.
Introduces an AppContext switch
System.Net.DisableIPv6
and environment variableDOTNET_SYSTEM_NET_DISABLEIPV6
to emulate the lack of OS-level IPv6 support. This is useful to workaround dual-stack socket issues when the OS reports support of IPv6, but some other underlying infrastructure element (typically VPN) doesn't function well with IPv6 request.For consistency, this switch also impacts NameResolution and Ping, not only Sockets.