Skip to content

Commit

Permalink
Change mDNS default provider
Browse files Browse the repository at this point in the history
By default, avahi is attempted and if not found, go native zeroconf is used
  • Loading branch information
DerAndereAndi committed Sep 15, 2024
1 parent 3c95ca0 commit 740f15e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func NewConfiguration(
certificate: certificate,
port: port,
heartbeatTimeout: heartbeatTimeout,
mdnsProviderSelection: mdns.MdnsProviderSelectionGoZeroConfOnly,
mdnsProviderSelection: mdns.MdnsProviderSelectionAll,
}

if port == 0 {
Expand Down
2 changes: 1 addition & 1 deletion api/configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 740f15e

Please sign in to comment.