cloudflared-mirror/vendor/golang.org/x
Devin Carr 92e0f5fcf9 TUN-8688: Correct UDP bind for IPv6 edge connectivity on macOS
For macOS, we want to set the DF bit for the UDP packets used by the QUIC
connection; to achieve this, you need to explicitly set the network
to either "udp4" or "udp6". When determining which network type to pick
we need to use the edge IP address chosen to align with what the local
IP family interface we will use. This means we want cloudflared to bind
to local interfaces for a random port, so we provide a zero IP and 0 port
number (ex. 0.0.0.0:0). However, instead of providing the zero IP, we
can leave the value as nil and let the kernel decide which interface and
pick a random port as defined by the target edge IP family.

This was previously broken for IPv6-only edge connectivity on macOS and
all other operating systems should be unaffected because the network type
was left as default "udp" which will rely on the provided local or remote
IP for selection.

Closes TUN-8688
2024-10-18 14:38:05 -07:00
..
crypto TUN-8407: Upgrade go to version 1.22.2 2024-05-07 16:58:57 +01:00
exp TUN-7934: Update quic-go to a version that queues datagrams for better throughput and drops large datagram 2024-01-03 13:01:01 +00:00
mod TUN-8456: Update quic-go to 0.45 and collect mtu and congestion control metrics 2024-06-17 15:28:56 +00:00
net TUN-8688: Correct UDP bind for IPv6 edge connectivity on macOS 2024-10-18 14:38:05 -07:00
oauth2 TUN-8052: Update go to 1.21.5 2023-12-15 12:17:21 +00:00
sync TUN-8407: Upgrade go to version 1.22.2 2024-05-07 16:58:57 +01:00
sys TUN-8407: Upgrade go to version 1.22.2 2024-05-07 16:58:57 +01:00
term TUN-8052: Update go to 1.21.5 2023-12-15 12:17:21 +00:00
text TUN-8052: Update go to 1.21.5 2023-12-15 12:17:21 +00:00
tools TUN-8456: Update quic-go to 0.45 and collect mtu and congestion control metrics 2024-06-17 15:28:56 +00:00