controlclient: fix staticcheck lint.

Signed-off-by: David Anderson <dave@natulte.net>
This commit is contained in:
David Anderson
2020-02-10 23:16:13 -08:00
parent fe9af19da9
commit 2227ede8af
3 changed files with 22 additions and 5 deletions

View File

@@ -72,8 +72,6 @@ type Direct struct {
hostinfo tailcfg.Hostinfo
endpoints []string
localPort uint16
cmdCh chan interface{}
doneCh chan struct{}
}
type Options struct {
@@ -174,9 +172,10 @@ func (c *Direct) TryLogout(ctx context.Context) error {
c.mu.Lock()
defer c.mu.Unlock()
if c.persist.PrivateNodeKey != (wgcfg.PrivateKey{}) {
// TODO(crawshaw): Tell the server. This node key should be immediately invalidated.
}
// TODO(crawshaw): Tell the server. This node key should be
// immediately invalidated.
//if c.persist.PrivateNodeKey != (wgcfg.PrivateKey{}) {
//}
c.persist = Persist{
PrivateMachineKey: c.persist.PrivateMachineKey,
}