Fix panic for DOCKER_HOST without ://
Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> Upstream-commit: 660cc4a2675d34695406b2506344a2a18f2a59e9 Component: engine
This commit is contained in:
@ -44,7 +44,8 @@ func main() {
|
||||
// If we do not have a host, default to unix socket
|
||||
defaultHost = fmt.Sprintf("unix://%s", api.DEFAULTUNIXSOCKET)
|
||||
}
|
||||
if _, err := api.ValidateHost(defaultHost); err != nil {
|
||||
defaultHost, err := api.ValidateHost(defaultHost)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
flHosts = append(flHosts, defaultHost)
|
||||
|
||||
Reference in New Issue
Block a user