mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-25 09:31:34 +00:00
Merge branch 'develop' into neilalexander/pinning
This commit is contained in:
commit
a59fd2a489
@ -33,14 +33,14 @@ var awdlGoroutineStarted bool
|
|||||||
|
|
||||||
func (m *Multicast) _multicastStarted() {
|
func (m *Multicast) _multicastStarted() {
|
||||||
C.StopAWDLBrowsing()
|
C.StopAWDLBrowsing()
|
||||||
for intf := range m.Interfaces() {
|
for intf := range m._interfaces {
|
||||||
if intf == "awdl0" {
|
if intf == "awdl0" {
|
||||||
C.StartAWDLBrowsing()
|
C.StartAWDLBrowsing()
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m.platformhandler = time.AfterFunc(time.Minute, func() {
|
m.platformhandler = time.AfterFunc(time.Minute, func() {
|
||||||
m.Act(m, m._multicastStarted)
|
m.Act(nil, m._multicastStarted)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user