proxy: use for updater

don't know how I missed before.
This commit is contained in:
Harvey Tindall
2024-08-20 20:38:18 +01:00
parent 6bad293f74
commit 8307d3da90
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -130,6 +130,11 @@ type Updater struct {
binary string
}
// SetTransport sets the http.Transport to use for requests. Can be used to set a proxy.
func (ud *Updater) SetTransport(t *http.Transport) {
ud.httpClient.Transport = t
}
func newUpdater(buildroneURL, namespace, repo, version, commit, buildType string) *Updater {
// fmt.Printf(`Updater intializing with "%s", "%s", "%s", "%s", "%s", "%s"\n`, buildroneURL, namespace, repo, version, commit, buildType)
bType := off