cli/web: pass existing localClient to web client

Updates tailscale/corp#13775

Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
pull/9052/head
Sonia Appasamy 10 months ago committed by Sonia Appasamy
parent 5cfa85e604
commit 78f087aa02

@ -78,7 +78,7 @@ func runWeb(ctx context.Context, args []string) error {
return fmt.Errorf("too many non-flag arguments: %q", args) 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() defer cleanup()
if webArgs.cgi { if webArgs.cgi {

Loading…
Cancel
Save