mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
21 lines
433 B
Go
21 lines
433 B
Go
|
// Copyright (c) Tailscale Inc & AUTHORS
|
||
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
|
||
|
//go:build (linux && !android) || windows
|
||
|
|
||
|
package clientupdate
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"tailscale.com/clientupdate/distsign"
|
||
|
)
|
||
|
|
||
|
func (up *Updater) downloadURLToFile(pathSrc, fileDst string) (ret error) {
|
||
|
c, err := distsign.NewClient(up.Logf, up.PkgsAddr)
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
return c.Download(context.Background(), pathSrc, fileDst)
|
||
|
}
|