mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-13 06:07:34 +00:00
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:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user