mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-22 04:48:39 +00:00
control/controlclient: avoid crash sending map request with zero node key
Fixes #1271 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
aa6856a9eb
commit
7529b74018
@ -550,6 +550,9 @@ func (c *Direct) sendMapRequest(ctx context.Context, maxPolls int, cb func(*Netw
|
|||||||
everEndpoints := c.everEndpoints
|
everEndpoints := c.everEndpoints
|
||||||
c.mu.Unlock()
|
c.mu.Unlock()
|
||||||
|
|
||||||
|
if persist.PrivateNodeKey.IsZero() {
|
||||||
|
return errors.New("privateNodeKey is zero")
|
||||||
|
}
|
||||||
if backendLogID == "" {
|
if backendLogID == "" {
|
||||||
return errors.New("hostinfo: BackendLogID missing")
|
return errors.New("hostinfo: BackendLogID missing")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user