cmd/tailscale: fix a panic in netcheck portmapper construction (#16843)

This affects the 1.87.33 unstable release.

Updates #16842
Updates #15160

Change-Id: Ie6d1b2c094d1a6059fbd1023760567900f06e0ad
Signed-off-by: M. J. Fromberger <fromberger@tailscale.com>
This commit is contained in:
M. J. Fromberger
2025-08-12 10:19:33 -07:00
committed by GitHub
parent cde65dba16
commit ee0c7b05a5

View File

@@ -59,8 +59,9 @@ func runNetcheck(ctx context.Context, args []string) error {
// Ensure that we close the portmapper after running a netcheck; this
// will release any port mappings created.
pm := portmapper.NewClient(portmapper.Config{
Logf: logf,
NetMon: netMon,
Logf: logf,
NetMon: netMon,
EventBus: bus,
})
defer pm.Close()