cmd/distsign: add CLI for verifying package signatures (#18239)

Updates #35374

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
This commit is contained in:
Andrew Lytvynov
2026-01-07 11:04:14 -08:00
committed by GitHub
parent 480ee9fec0
commit 6c67deff38
2 changed files with 49 additions and 1 deletions
+7 -1
View File
@@ -332,7 +332,13 @@ func (c *Client) download(ctx context.Context, url, dst string, limit int64) ([]
tr := http.DefaultTransport.(*http.Transport).Clone()
tr.Proxy = feature.HookProxyFromEnvironment.GetOrNil()
defer tr.CloseIdleConnections()
hc := &http.Client{Transport: tr}
hc := &http.Client{
Transport: tr,
CheckRedirect: func(r *http.Request, via []*http.Request) error {
c.logf("Download redirected to %q", r.URL)
return nil
},
}
quickCtx, cancel := context.WithTimeout(ctx, 30*time.Second)
defer cancel()