cli/web: pass existing localClient to web client

Updates tailscale/corp#13775

Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
This commit is contained in:
Sonia Appasamy 2023-08-23 12:46:06 -04:00 committed by Sonia Appasamy
parent 5cfa85e604
commit 78f087aa02
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ func runWeb(ctx context.Context, args []string) error {
return fmt.Errorf("too many non-flag arguments: %q", args)
}
webServer, cleanup := web.NewServer(webArgs.dev, nil)
webServer, cleanup := web.NewServer(webArgs.dev, &localClient)
defer cleanup()
if webArgs.cgi {