mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
Updates github.com/docker/cli from v27.1.1 to v29.0.2 to use the latest Docker client API. This upgrade includes required dependency updates: - Added github.com/moby/moby/client v0.1.0 - Added github.com/moby/moby/api v1.52.0 - Updated github.com/docker/go-connections v0.5.0 → v0.6.0 - Updated github.com/opencontainers/image-spec v1.1.0 → v1.1.1 - Updated OpenTelemetry packages (v1.28.0 → v1.35.0) - Updated golang.org/x/sys v0.24.0 → v0.33.0 All changes tested and build verified successfully.
31 lines
1 KiB
Go
31 lines
1 KiB
Go
package sockets
|
|
|
|
import (
|
|
"net"
|
|
"os"
|
|
"strings"
|
|
)
|
|
|
|
// GetProxyEnv allows access to the uppercase and the lowercase forms of
|
|
// proxy-related variables. See the Go specification for details on these
|
|
// variables. https://golang.org/pkg/net/http/
|
|
//
|
|
// Deprecated: this function was used as helper for [DialerFromEnvironment] and is no longer used. It will be removed in the next release.
|
|
func GetProxyEnv(key string) string {
|
|
proxyValue := os.Getenv(strings.ToUpper(key))
|
|
if proxyValue == "" {
|
|
return os.Getenv(strings.ToLower(key))
|
|
}
|
|
return proxyValue
|
|
}
|
|
|
|
// DialerFromEnvironment was previously used to configure a net.Dialer to route
|
|
// connections through a SOCKS proxy.
|
|
//
|
|
// Deprecated: SOCKS proxies are now supported by configuring only
|
|
// http.Transport.Proxy, and no longer require changing http.Transport.Dial.
|
|
// Therefore, only [sockets.ConfigureTransport] needs to be called, and any
|
|
// [sockets.DialerFromEnvironment] calls can be dropped.
|
|
func DialerFromEnvironment(direct *net.Dialer) (*net.Dialer, error) {
|
|
return direct, nil
|
|
}
|