mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-12-02 10:09:09 +01:00
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>