4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-13 14:06:28 +00:00
This commit is contained in:
Neil Alexander
2018-05-27 22:13:37 +01:00
parent 707e23d392
commit 4c115de633
9 changed files with 363 additions and 108 deletions

View File

@ -64,7 +64,13 @@ func (r *router) init(core *Core) {
r.core.tun.send = send
r.reset = make(chan struct{}, 1)
r.admin = make(chan func())
// go r.mainLoop()
}
func (r *router) start() error {
r.core.log.Println("Starting router")
go r.mainLoop()
return nil
}
func (r *router) mainLoop() {