|
Some checks failed
tests / build (push) Failing after 3s
Config.Clone() copied every top-level Data section except WebRTC. Because api.go receives a clone (not the original), cfg.WebRTC.Enable was always the zero value at runtime, the subsystem was skipped, and the WHEP route was never mounted — regardless of CORE_WEBRTC_ENABLE. Caught on the first live M2 TrueNAS deploy: env said enable=true, container listened fine, but /api/v3/whep/:id returned Echo's default JSON 404 (from router) instead of the handler's plain-text 'webrtc: stream not found' (which it would return for an unknown id). - Add data.WebRTC = d.WebRTC in the struct-copy block. - Deep-copy NAT1To1IPs alongside the other []string sections. - Regression test TestConfigCopyWebRTC covers both. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| copy | ||
| store | ||
| v1 | ||
| v2 | ||
| value | ||
| vars | ||
| config.go | ||
| config_test.go | ||
| data.go | ||
| data_test.go | ||