Skip to content

Support Http3 in scenarios where ipv6 has been disabled at the runtime level #113100

Open
@mastahg

Description

@mastahg

Description

Currently if you attempt to disable ipv6 via System.Net.DisableIPv6 and initiate a Http3 connection it will fail because Socket.OSSupportsIPv6 will return false.

Reproduction Steps

Disable ipv6 via System.Net.DisableIPv6
Create a http3 client with

HttpClient Client = new HttpClient()
        {
            DefaultRequestVersion = HttpVersion.Version30,
            DefaultVersionPolicy = HttpVersionPolicy.RequestVersionExact
        };

attempt to use the httpclient and it will throw an exception

Expected behavior

Http3 should work regardless of the presence of ipv6

Actual behavior

It does not work

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Net.QuicenhancementProduct code improvement that does NOT require public API changes/additions

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions