We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1620bd commit 2475734Copy full SHA for 2475734
cmd/src/main.go
@@ -6,7 +6,6 @@ import (
6
"io"
7
"log"
8
"net"
9
- "net/http"
10
"net/url"
11
"os"
12
"path/filepath"
@@ -278,14 +277,6 @@ func readConfig() (*config, error) {
278
277
} else {
279
return nil, errors.Newf("invalid proxy endpoint: %s", proxyStr)
280
}
281
- } else {
282
- // no SRC_PROXY; check for the standard proxy env variables HTTP_PROXY, HTTPS_PROXY, and NO_PROXY
283
- if u, err := http.ProxyFromEnvironment(&http.Request{URL: cfg.endpointURL}); err != nil {
284
- // when there's an error, the value for the env variable is not a legit URL
285
- return nil, errors.Newf("invalid HTTP_PROXY or HTTPS_PROXY value: %w", err)
286
287
- cfg.proxyURL = u
288
- }
289
290
291
cfg.additionalHeaders = parseAdditionalHeaders()
0 commit comments