Address some comments

This commit is contained in:
Neil Alexander 2019-01-15 08:44:33 +00:00
parent 3bf53796a7
commit 39567bed83
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944
2 changed files with 7 additions and 8 deletions

View File

@ -38,15 +38,13 @@ func (c *cryptokey) init(core *Core) {
c.reconfigure = make(chan chan error, 1)
go func() {
for {
select {
case e := <-c.reconfigure:
e := <-c.reconfigure
var err error
c.core.router.doAdmin(func() {
err = c.core.router.cryptokey.configure()
})
e <- err
}
}
}()
if err := c.configure(); err != nil {

View File

@ -54,6 +54,7 @@ func (tun *tunAdapter) init(core *Core, send chan<- []byte, recv <-chan []byte)
tun.core.config.IfMTU != tun.core.configOld.IfMTU
tun.core.configMutex.RUnlock()
if updated {
tun.core.log.Println("Reconfiguring TUN/TAP is not supported yet")
e <- nil
} else {
e <- nil