SIGN IN SIGN UP

cmd/tailscale/cli: stop Serve port ranges at 65535

The set-config loop uses uint16 endpoints. When Last is 65535, the increment wraps to zero and file or Unix targets continue indefinitely.

Break after applying Last so every closed range terminates without changing ordinary range behavior.

Fixes #20873

Signed-off-by: Bonobo <github@in9.at>
B
Bonobo committed
86e5d3873aa96403d42e35ddd9247834c309691b
Parent: 6d7f121
Committed by Harry Harpham <harry@tailscale.com> on 8/21/2026, 8:23:06 PM