mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
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 {
|
} 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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user