Support IPv6 #2

Merged
vecomr merged 1 commit from v6-support into main 2025-11-13 23:27:01 +00:00
Owner

IPv6 sockets are dual stack by default, you need to setsockopt(socket, IPV6_V6ONLY) to make them IPv6-only.

To support two stacks, we only need to bind IPv6.

IPv6 sockets are dual stack by default, you need to `setsockopt(socket, IPV6_V6ONLY)` to make them IPv6-only. To support two stacks, we only need to bind IPv6.
Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
[::] is an IPv4/IPv6 socket actually. It can accept IPv4 connections as
well.

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
vecomr merged commit c2cb7ac70d into main 2025-11-13 23:27:01 +00:00
vecomr deleted branch v6-support 2025-11-13 23:27:02 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
afnix/botanix!2
No description provided.