SIGN IN SIGN UP

Enable tunnelling for Windows (#710)

* Without this change on Windows this would fail with WSAEFAULT
which per https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-accept

"The addrlen parameter is too small or addr is not a valid part of the user address space."

The correct structure depends on the passed on the family specification of the socket creation.

sockaddr_in  is correct for AF_INET.
sockaddr_un is correct for AF_UNIX
sockaddr_storage is large enough for any.

* Source tunnel should now work.
V
Vitali committed
0842e15046eb049fbb82fc7921941cff2542ea95
Parent: 2d7e834
Committed by GitHub <noreply@github.com> on 12/4/2025, 9:07:16 PM