Files
swiftcontrol/lib/bluetooth
Jonas Bark da77cab5d5 fix(obc): report a hostname only when Bonjour owns the record
advertisedHostname returned Platform.localHostname + '.local' for every
osResponder registration, but that is gethostname(), not the Bonjour
LocalHostName nsd publishes under (macOS: "0891….fritz.box" vs
"MacBook-Pro.local"; Android: "localhost"). Right after opting into the
switch the hostname-resolution probe therefore failed on a healthy setup
and the support bundle carried a wrong host=.

Only Bonjour on Windows (default host record == COMPUTERNAME) and our own
responder (it is the record) can tell us the name, so key the getter on the
concrete active advertiser and return null for nsd; the probe then lands on
skipped {'reason': 'hostname unknown'} and the bundle omits host=.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-21 15:21:10 +02:00
..
2026-06-10 07:23:36 +02:00