mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-09 08:01:31 +00:00
client/tailscale, tsnet, ipn/ipnlocal: prove nodekey ownership over noise
Fixes #5972 Change-Id: Ic33a93d3613ac5dbf172d6a8a459ca06a7f9e547 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:

committed by
Brad Fitzpatrick

parent
8c790207a0
commit
910db02652
@@ -82,3 +82,6 @@ func (k ChallengePublic) MarshalText() ([]byte, error) {
|
||||
func (k *ChallengePublic) UnmarshalText(b []byte) error {
|
||||
return parseHex(k.k[:], mem.B(b), mem.S(chalPublicHexPrefix))
|
||||
}
|
||||
|
||||
// IsZero reports whether k is the zero value.
|
||||
func (k ChallengePublic) IsZero() bool { return k == ChallengePublic{} }
|
||||
|
Reference in New Issue
Block a user