Skip to content

Allow bind to both ipv4/ipv6 #5683

@WindowsNT

Description

@WindowsNT

Describe the feature you'd like supported

A AF_INET6 socket that is bound to a port with bind() function and a sockaddr_in6 structure can also receive ipv4 connections when

			DWORD ag = 0;
			setsockopt(X, IPPROTO_IPV6, IPV6_V6ONLY, (char*)&ag, 4);

is used.

Proposed solution

Why not having a QUIC_ADDRESS_FAMILY_BOTH into ListenerStart. This would help us avoid two listeners, one for 4 and one for 6.

Additional context

No response

Metadata

Metadata

Assignees

Labels

feature requestA request for new functionality

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions