mirror of
https://github.com/livekit/livekit.git
synced 2026-11-12 22:58:01 +00:00
When an Allocate has no REQUESTED-ADDRESS-FAMILY, as from browsers, pion picks the relay family from the address the client reached. The default bind address 0.0.0.0 is a dual-stack listener, so a client that connects over IPv6 gets a udp6 relay, which the IPv4 bind address cannot open. Every allocation fails with 508 Insufficient Capacity and the client gets no relay candidate. Set StrictAddressFamily, which keeps the RFC 8656 default of an IPv4 relay, when no bind address is IPv6. Those nodes could never open an IPv6 relay, so no allocation that succeeded before changes. With an IPv6 bind address, pion's default is kept. Fixes #5131