mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 06:35:07 +03:00
Return new copy of interfaces on each Interfaces() call
This commit is contained in:
parent
54f1804101
commit
27b3b9b49b
3 changed files with 16 additions and 56 deletions
|
@ -38,8 +38,8 @@ func (m *Multicast) multicastStarted() {
|
|||
awdlGoroutineStarted = true
|
||||
for {
|
||||
C.StopAWDLBrowsing()
|
||||
for _, intf := range m.GetInterfaces() {
|
||||
if intf.Name == "awdl0" {
|
||||
for intf := range m.Interfaces() {
|
||||
if intf == "awdl0" {
|
||||
m.log.Infoln("Multicast discovery is using AWDL discovery")
|
||||
C.StartAWDLBrowsing()
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue