From 740f15eba48e564ee52facc8f8b32360687cf8db Mon Sep 17 00:00:00 2001 From: Andreas Linde Date: Sun, 15 Sep 2024 17:22:16 +0200 Subject: [PATCH] Change mDNS default provider By default, avahi is attempted and if not found, go native zeroconf is used --- api/configuration.go | 2 +- api/configuration_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/configuration.go b/api/configuration.go index d281eb88..b3b5bc43 100644 --- a/api/configuration.go +++ b/api/configuration.go @@ -88,7 +88,7 @@ func NewConfiguration( certificate: certificate, port: port, heartbeatTimeout: heartbeatTimeout, - mdnsProviderSelection: mdns.MdnsProviderSelectionGoZeroConfOnly, + mdnsProviderSelection: mdns.MdnsProviderSelectionAll, } if port == 0 { diff --git a/api/configuration_test.go b/api/configuration_test.go index 5e4bfbaa..dd144abf 100644 --- a/api/configuration_test.go +++ b/api/configuration_test.go @@ -78,7 +78,7 @@ func (s *ConfigurationSuite) Test_Configuration() { assert.NotNil(s.T(), config) assert.Nil(s.T(), err) - assert.Equal(s.T(), mdns.MdnsProviderSelectionGoZeroConfOnly, config.MdnsProviderSelection()) + assert.Equal(s.T(), mdns.MdnsProviderSelectionAll, config.MdnsProviderSelection()) config.SetMdnsProviderSelection(mdns.MdnsProviderSelectionAvahiOnly) assert.Equal(s.T(), mdns.MdnsProviderSelectionAvahiOnly, config.MdnsProviderSelection())