mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Update awdl.go to use new link stuff (untested)
This commit is contained in:
parent
4ae36dfffe
commit
c51a3340b1
3 changed files with 94 additions and 9 deletions
|
@ -44,7 +44,8 @@ type Core struct {
|
|||
searches searches
|
||||
multicast multicast
|
||||
tcp tcpInterface
|
||||
link link
|
||||
link link // TODO: not sure if this wants to be here?
|
||||
awdl awdl
|
||||
log *log.Logger
|
||||
}
|
||||
|
||||
|
@ -198,12 +199,10 @@ func (c *Core) Start(nc *config.NodeConfig, log *log.Logger) error {
|
|||
return err
|
||||
}
|
||||
|
||||
/*
|
||||
if err := c.awdl.init(c); err != nil {
|
||||
c.log.Println("Failed to start AWDL interface")
|
||||
return err
|
||||
}
|
||||
*/
|
||||
if err := c.awdl.init(c); err != nil {
|
||||
c.log.Println("Failed to start AWDL interface")
|
||||
return err
|
||||
}
|
||||
|
||||
if nc.SwitchOptions.MaxTotalQueueSize >= SwitchQueueTotalMinSize {
|
||||
c.switchTable.queueTotalMaxSize = nc.SwitchOptions.MaxTotalQueueSize
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue