From 1b3ec0b93fa93ce5facd80ec30e6ccf09c00283e Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 17 May 2019 22:59:29 +0100 Subject: [PATCH] Fix multicast start check so that it shouldn't give up if interfaces aren't up when Yggdrasil starts (fixes #405) --- src/multicast/multicast.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/multicast/multicast.go b/src/multicast/multicast.go index 8d18889d..cbde7fd9 100644 --- a/src/multicast/multicast.go +++ b/src/multicast/multicast.go @@ -60,7 +60,8 @@ func (m *Multicast) Init(core *yggdrasil.Core, state *config.NodeState, log *log // listen for multicast beacons from other hosts and will advertise multicast // beacons out to the network. func (m *Multicast) Start() error { - if len(m.interfaces()) == 0 { + current, _ := m.config.Get() + if len(current.MulticastInterfaces) == 0 { m.log.Infoln("Multicast discovery is disabled") } else { m.log.Infoln("Multicast discovery is enabled")