wgengine/magicsock: add immutability documentation to endpointDisco

Updates #7825

Signed-off-by: James Tucker <james@tailscale.com>
pull/7831/head
James Tucker 2 years ago committed by James Tucker
parent fb18af5564
commit a257b2f88b

@ -4085,6 +4085,8 @@ func ippDebugString(ua netip.AddrPort) string {
// recalculated.
type endpointSendFunc func([][]byte) error
// endpointDisco is the current disco key and short string for an endpoint. This
// structure is immutable.
type endpointDisco struct {
key key.DiscoPublic // for discovery messages.
short string // ShortString of discoKey.

Loading…
Cancel
Save