5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-26 18:51:38 +00:00

Fix multicast start check so that it shouldn't give up if interfaces aren't up when Yggdrasil starts (fixes #405)

This commit is contained in:
Neil Alexander 2019-05-17 22:59:29 +01:00
parent 2df62e2b9b
commit 1b3ec0b93f
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -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 // listen for multicast beacons from other hosts and will advertise multicast
// beacons out to the network. // beacons out to the network.
func (m *Multicast) Start() error { 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") m.log.Infoln("Multicast discovery is disabled")
} else { } else {
m.log.Infoln("Multicast discovery is enabled") m.log.Infoln("Multicast discovery is enabled")