SIGN IN SIGN UP

cmd/tailscale/cli: add debug ts2021 --force-port flag

By default the controlhttp dialer tries the plaintext port 80 upgrade
path first with a port 443 TLS fallback, so it's not deterministic
which of the two server code paths a debugging session exercises. Add
a --force-port flag to pin the noise connection to one or the other:
443 uses the dialer's existing TS_FORCE_NOISE_443 knob, and both
values are also enforced at the dial layer so the other port can't be
used by a silent fallback.

Updates tailscale/corp#29053

Change-Id: I5641db9bd2083d458ba7e0e766c7f9da535ba3e0
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
B
Brad Fitzpatrick committed
406aeea1745df1da865c455b3c0d697168f26869
Parent: 0fec0e7
Committed by Brad Fitzpatrick <brad@danga.com> on 7/29/2026, 10:36:40 PM