mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-30 21:42:48 -08:00
Setenv refreshes the cached values behind RegisterString, RegisterBool, RegisterOptBool and RegisterDuration, but had no case for RegisterInt. An int knob kept its old value after Setenv, even though RegisterInt's doc says mutations happen via Setenv. Add the missing case and a test. Fixes #21530 Change-Id: I3213c68a22619c0dd334b00f6eaa1e260ee20827 Signed-off-by: Jeremy Schoemaker <[email protected]>