mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 05:41:12 +00:00
Remove logspam when SOCKS proxy fails to connect.
This commit is contained in:
parent
eb7e79e887
commit
244490b4d4
1 changed files with 0 additions and 1 deletions
|
@ -81,7 +81,6 @@ func NewClientTokenTLS(uri, token string, c *tls.Config) (Client, error) {
|
||||||
if os.Getenv("SOCKS_PROXY") != "" {
|
if os.Getenv("SOCKS_PROXY") != "" {
|
||||||
dialer, err := proxy.SOCKS5("tcp", os.Getenv("SOCKS_PROXY"), nil, proxy.Direct)
|
dialer, err := proxy.SOCKS5("tcp", os.Getenv("SOCKS_PROXY"), nil, proxy.Direct)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintln(os.Stderr, "can't connect to the proxy:", err)
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
trans.Base = &http.Transport{
|
trans.Base = &http.Transport{
|
||||||
|
|
Loading…
Reference in a new issue