diff options
| author | Andrew Dunham <andrew@du.nham.ca> | 2023-12-20 19:24:03 -0500 |
|---|---|---|
| committer | Andrew Dunham <andrew@du.nham.ca> | 2024-01-03 14:17:50 -0500 |
| commit | fa3639783ceed998efc311db10958271b2262e0b (patch) | |
| tree | 7f9abb1904de16b8b2115935b69a7089b2b75e05 /control/controlknobs | |
| parent | b084888e4da4c1fbc6288ec76d32278fed76e32e (diff) | |
| download | tailscale-fa3639783ceed998efc311db10958271b2262e0b.tar.xz tailscale-fa3639783ceed998efc311db10958271b2262e0b.zip | |
net/portmapper: check returned epoch from PMP and PCP protocols
If the epoch that we see during a Probe is less than the existing epoch,
it means that the gateway has either restarted or reset its
configuration, and an existing mapping is no longer valid. Reset any
saved mapping(s) if we detect this case so that a future
createOrGetMapping will not attempt to re-use it.
Updates #10597
Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: Ie3cddaf625cb94a29885f7a1eeea25dbf6b97b47
Diffstat (limited to 'control/controlknobs')
0 files changed, 0 insertions, 0 deletions
