mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03: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:
		
							parent
							
								
									2df62e2b9b
								
							
						
					
					
						commit
						1b3ec0b93f
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -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")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue