mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-04 23:45:34 +00:00
disco: amplify comment that disco ping's NodeKey shouldn't be trusted by itself.
Signed-off-by: David Anderson <danderson@tailscale.com>
(cherry picked from commit 1c56643136
)
This commit is contained in:
parent
4a531a0aed
commit
ae267e0df1
@ -110,11 +110,12 @@ type Ping struct {
|
|||||||
// TxID is a random client-generated per-ping transaction ID.
|
// TxID is a random client-generated per-ping transaction ID.
|
||||||
TxID [12]byte
|
TxID [12]byte
|
||||||
|
|
||||||
// NodeKey is the ping sender's wireguard public key. Old
|
// NodeKey is allegedly the ping sender's wireguard public key.
|
||||||
// clients (~1.16.0 and earlier) don't send this field. It
|
// Old clients (~1.16.0 and earlier) don't send this field.
|
||||||
// shouldn't be trusted by itself. But if present and the
|
|
||||||
// netmap's peer for this NodeKey's DiscoKey matches the
|
// It shouldn't be trusted by itself, but can be combined with
|
||||||
// sender of this disco key, they it can be.
|
// netmap data to reduce the discokey:nodekey relation from 1:N to
|
||||||
|
// 1:1.
|
||||||
NodeKey tailcfg.NodeKey
|
NodeKey tailcfg.NodeKey
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user