From 38a613d7ed60a323bdbaea015e6694ff1d11679a Mon Sep 17 00:00:00 2001 From: Donavan Becker Date: Fri, 19 Jul 2024 22:17:45 -0500 Subject: [PATCH] Set ciao as default advertiser --- src/lib/Accessory.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/Accessory.ts b/src/lib/Accessory.ts index 1784fec42..bcfc537db 100644 --- a/src/lib/Accessory.ts +++ b/src/lib/Accessory.ts @@ -1186,16 +1186,16 @@ export class Accessory extends EventEmitter { // create our Advertiser which broadcasts our presence over mdns const parsed = Accessory.parseBindOption(info); - let selectedAdvertiser = info.advertiser ?? MDNSAdvertiser.BONJOUR; + let selectedAdvertiser = info.advertiser ?? MDNSAdvertiser.CIAO; if ( (info.advertiser === MDNSAdvertiser.AVAHI && !await AvahiAdvertiser.isAvailable()) || (info.advertiser === MDNSAdvertiser.RESOLVED && !await ResolvedAdvertiser.isAvailable()) ) { console.error( `[${this.displayName}] The selected advertiser, "${info.advertiser}", isn't available on this platform. ` + - `Reverting to "${MDNSAdvertiser.BONJOUR}"`, + `Reverting to "${MDNSAdvertiser.CIAO}"`, ); - selectedAdvertiser = MDNSAdvertiser.BONJOUR; + selectedAdvertiser = MDNSAdvertiser.CIAO; } switch (selectedAdvertiser) {