mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2026-05-24 06:46:29 +03:00
Try and solidify multicast interface behavior
This commit is contained in:
@@ -35,12 +35,12 @@ func (m *Multicast) multicastStarted() {
|
||||
if awdlGoroutineStarted {
|
||||
return
|
||||
}
|
||||
m.log.Infoln("Multicast discovery will wake up AWDL if required")
|
||||
awdlGoroutineStarted = true
|
||||
for {
|
||||
C.StopAWDLBrowsing()
|
||||
for _, intf := range m.interfaces() {
|
||||
for _, intf := range m.GetInterfaces() {
|
||||
if intf.Name == "awdl0" {
|
||||
m.log.Infoln("Multicast discovery is using AWDL discovery")
|
||||
C.StartAWDLBrowsing()
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user