4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-06 01:44:06 +00:00

Move awdl into link

This commit is contained in:
Neil Alexander
2019-01-23 19:42:33 +00:00
parent 188a9e439d
commit 705b914d00
4 changed files with 33 additions and 33 deletions

View File

@ -15,6 +15,7 @@ type link struct {
core *Core
mutex sync.RWMutex // protects interfaces below
interfaces map[linkInfo]*linkInterface
awdl awdl // AWDL interface support
}
type linkInfo struct {
@ -49,7 +50,7 @@ func (l *link) init(c *Core) error {
l.interfaces = make(map[linkInfo]*linkInterface)
l.mutex.Unlock()
if err := l.core.awdl.init(c); err != nil {
if err := l.awdl.init(l); err != nil {
l.core.log.Println("Failed to start AWDL interface")
return err
}