prober: propagate DERPMap request creation errors

Updates tailscale/corp#8497

Signed-off-by: Anton Tolchanov <anton@tailscale.com>
pull/12759/head
Anton Tolchanov 5 months ago committed by Anton Tolchanov
parent 726d5d507d
commit c8f258a904

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

Loading…
Cancel
Save