mirror of
https://github.com/rancher/os.git
synced 2025-09-04 08:14:21 +00:00
migrate to upstream libcompose in one and a half go
This commit is contained in:
3
vendor/github.com/fsouza/go-dockerclient/client.go
generated
vendored
3
vendor/github.com/fsouza/go-dockerclient/client.go
generated
vendored
@@ -793,6 +793,9 @@ func (e *Error) Error() string {
|
||||
}
|
||||
|
||||
func parseEndpoint(endpoint string, tls bool) (*url.URL, error) {
|
||||
if endpoint != "" && !strings.Contains(endpoint, "://") {
|
||||
endpoint = "tcp://" + endpoint
|
||||
}
|
||||
u, err := url.Parse(endpoint)
|
||||
if err != nil {
|
||||
return nil, ErrInvalidEndpoint
|
||||
|
Reference in New Issue
Block a user