mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 06:35:07 +03:00
Try and solidify multicast interface behavior
This commit is contained in:
parent
2fd3ac6837
commit
54f1804101
3 changed files with 76 additions and 73 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue