From 39567bed83308cc1431943eb91ea321fb5e33d14 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 15 Jan 2019 08:44:33 +0000 Subject: [PATCH] Address some comments --- src/yggdrasil/ckr.go | 14 ++++++-------- src/yggdrasil/tun.go | 1 + 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/yggdrasil/ckr.go b/src/yggdrasil/ckr.go index 14464f6..a5ed455 100644 --- a/src/yggdrasil/ckr.go +++ b/src/yggdrasil/ckr.go @@ -38,14 +38,12 @@ func (c *cryptokey) init(core *Core) { c.reconfigure = make(chan chan error, 1) go func() { for { - select { - case e := <-c.reconfigure: - var err error - c.core.router.doAdmin(func() { - err = c.core.router.cryptokey.configure() - }) - e <- err - } + e := <-c.reconfigure + var err error + c.core.router.doAdmin(func() { + err = c.core.router.cryptokey.configure() + }) + e <- err } }() diff --git a/src/yggdrasil/tun.go b/src/yggdrasil/tun.go index 0bda312..46fabbc 100644 --- a/src/yggdrasil/tun.go +++ b/src/yggdrasil/tun.go @@ -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