@brainworm.homes Bluesky reported
- Type
- Bug report
- Area
- rerouted
- Platform
- Linux
- Version
- 0.2.0-rc.3
Setting REROUTED_VOICE_UDP_PORT makes voice channels unavailable anywhere the process runs in a container whose eth0 carries a link-local IPv6 address (i.e. every Kubernetes pod): level=ERROR msg="voice channels are off: the SFU didn't start" err="sfu: UDP port 50000: listen udp [fe80::34f8:dfff:fe9d:f8f1%eth0]:50000: bind: cannot assign requested address" Cause: sfu.New is always called without IPFilter (internal/api/community_misc.go), so ice.NewMultiUDPMuxFromPort enumerates all interface addresses and binds the port on each, including the fe80::/64 link-local. That bind fails with EADDRNOTAVAIL on a pod's eth0, and NewMultiUDPMuxFromPort fails hard, taking down the whole SFU. --- a/internal/sfu/sfu.go +++ b/internal/sfu/sfu.go @@ func New(cfg Config) (*SFU, error) { if cfg.Log == nil { cfg.Log = slog.New(slog.NewTextHandler(io.Discard, nil)) } + if cfg.IPFilter == nil { + cfg.IPFilter = func(ip net.IP) bool { + return !ip.IsLinkLocalUnicast() && !ip.IsLinkLocalMulticast() + } + }