prober: propagate DERPMap request creation errors
Updates tailscale/corp#8497 Signed-off-by: Anton Tolchanov <anton@tailscale.com>
This commit is contained in:
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…
Reference in New Issue