#2425·go2rtc

HomeKit proxy source stuck in mDNS discovery loop, never reaches SetupEndpoints — regression between 1.9.2 (working) and 1.9.13 (broken)

Author: Djoko-cliCreated Aug 14, 2026Updated Oct 1, 2026
Labelsbugmodule/homekit

Environment

  • go2rtc version (broken): 1.9.13 (also reproduced on 1.9.14)
  • go2rtc version (working): 1.9.2
  • Platform: Docker, network_mode: host, Synology DS925+ (DSM), linux/amd64
  • Camera: Logitech Circle View Camera (HomeKit-only, no native RTSP/ONVIF)
    • mDNS info: md=Circle View Camera, ci=17, ff=1
  • Pairing method: direct homekit:// source (go2rtc as HAP controller), not via Home Assistant's hass: source

Description

Using go2rtc as a HAP controller to pull video/audio from a Logitech Circle View camera works correctly on 1.9.2, but is completely broken on 1.9.13: the source never receives any media, despite the pairing session appearing to succeed and the srtp module being loaded and listening.

Note: this looks related to #1180 ("Logitech HomeKit cameras broken from 1.9.3"), but that report concerns a Circle 2 camera paired via Home Assistant, has received no investigation in ~2 years, and contains no diagnostic data. This report is a different camera model, a different pairing path (direct homekit://, no Home Assistant involved), and includes a full network-level reproduction — so the underlying regression may be broader than originally scoped in #1180.

Steps to reproduce

  1. Pair a Logitech Circle View camera directly to go2rtc via the WebUI homekit:// pairing flow (works fine, produces valid client_id/client_private/device_public).
  2. Configure a stream using the stored homekit:// source URL.
  3. Ensure the srtp module is explicitly enabled (see note below — without it, the source panics/fails outright on 1.9.13; this is a separate, already-identified issue).
  4. Start go2rtc and open the WebRTC/MSE viewer for the stream in a browser tab (kept open, to guarantee an active consumer is present).
  5. Capture traffic between go2rtc and the camera: tcpdump -n -i any udp and host <camera_ip>.

Expected behavior

The camera should send SRTP media (video ~1200-1400 byte UDP packets, audio ~20-30 byte UDP packets) to the srtp.listen port shortly after the HAP session negotiation, as it does on 1.9.2.

Actual behavior (1.9.13 / 1.9.14)

No SRTP media packets are ever received on the srtp listen port — confirmed via tcpdump, with an active viewer session open the entire time. The only traffic observed between go2rtc and the camera is a repeating mDNS discovery query, sent roughly every 5-6 seconds indefinitely:

<NAS_IP>.<port> > <camera_ip>.5353: 0 PTR (QM)? _hap._tcp.local. (33)
<camera_ip>.5353 > <NAS_IP>.<port>: 0*- 1/0/4 PTR Circle View 19E8._hap._tcp.local. (245)

It never progresses to SetupEndpoints / SRTP negotiation. No [homekit] log lines are ever produced, even with log.homekit: trace enabled. Consumers attached downstream (e.g. an exec:/ffmpeg: producer re-muxing the stream) time out indefinitely (30s cycle, repeating).

/api/streams is misleading here: it shows the producer with a populated medias list (video, recvonly, H264, audio, recvonly, OPUS/...) and even shows downstream consumers attached — but this only reflects negotiated capabilities, not actual media flow. No packets are moving.

Actual behavior (1.9.2, same pairing keys, same YAML aside from version)

Within seconds of the viewer connecting, tcpdump shows sustained, high-volume UDP traffic on the SRTP port from the camera:

<camera_ip>.5010 > <NAS_IP>.<srtp_port>: UDP, length 1378   (video)
<camera_ip>.5012 > <NAS_IP>.<srtp_port>: UDP, length 28     (audio)
<NAS_IP>.<srtp_port> > <camera_ip>.5010: UDP, length 22     (RTCP-like return traffic)

~3700 packets captured in a few seconds. /api/streams shows real, working consumers (e.g. LIVE555 client, Scrypted) with valid SDP and continuous playback.

Config used (redacted)

yaml
app:
  modules: [api, rtsp, webrtc, ffmpeg, homekit, exec, srtp]

exec:
  allow_paths: [ffmpeg]

srtp:
  listen: "0.0.0.0:19443"

streams:
  circleview:
    - "homekit://<camera_ip>:<hap_port>?device_id=<REDACTED>&device_public=<REDACTED>&client_id=<REDACTED>&client_private=<REDACTED>"
    - ffmpeg:circleview#audio=aac#audio=opus#async

rtsp:
  listen: ":8554"

Confirmed via netstat -tuln that the srtp module is bound and listening on the configured port in both 1.9.2 and 1.9.13 test runs — this is not a "module not loaded" issue.

Additional note (separate, already worked around)

On 1.9.13, srtp must be explicitly listed in app.modules or the homekit source fails immediately with homekit: can't work without SRTP server. On 1.9.2, the same restricted app.modules list (without srtp) worked fine. This suggests srtp became an explicit dependency of the HomeKit module at some point between 1.9.2 and 1.9.13 (possibly related to the "Code refactoring for HomeKit server" note in the 1.9.12 changelog) without being called out as a breaking/config change. Worth a doc update regardless of the main issue above.

Additional info available on request

  • Full docker logs output at log.homekit: trace / log.srtp: trace level for both versions
  • Full tcpdump captures (pcap) for both versions
  • /api/streams JSON output for both versions