prober: propagate DERPMap request creation errors

Updates tailscale/corp#8497

Signed-off-by: Anton Tolchanov <anton@tailscale.com>
This commit is contained in:
Anton Tolchanov 2024-07-08 17:29:08 +01:00 committed by Anton Tolchanov
parent 726d5d507d
commit c8f258a904

View File

@ -286,7 +286,7 @@ func (d *derpProber) updateMap(ctx context.Context) error {
} else { } else {
req, err := http.NewRequestWithContext(ctx, "GET", d.derpMapURL, nil) req, err := http.NewRequestWithContext(ctx, "GET", d.derpMapURL, nil)
if err != nil { if err != nil {
return nil return err
} }
res, err := httpOrFileClient.Do(req) res, err := httpOrFileClient.Do(req)
if err != nil { if err != nil {