mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-21 09:11:18 -08:00
The nonce used in PCP identifies a particular port mapping. It needs to be generated randomly for the initial mapping, and then saved so that it can be used to renew or delete a mapping later. This is how the router checks that we're authorized to change existing mappings. If we receive a response for a different nonce, we should ignore it since it's not meant for us (or the router is misbehaving). Fixes #21127 Change-Id: Ic7874d376a74791807953f2f559c8a14a8eb75e9 Signed-off-by: Francois Marier <[email protected]>