Skip to content

Commit

Permalink
Fall back to default, if GetPort is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
afbjorklund committed Sep 19, 2017
1 parent 824a68c commit 0cbe7eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmachine/provision/boot2docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (provisioner *Boot2DockerProvisioner) AttemptIPContact() {
port, err := provisioner.Driver.GetPort()
if err != nil {
log.Warnf("Could not get port number for created machine: %s", err)
return
port = engine.DefaultPort
}

if conn, err := net.DialTimeout("tcp", fmt.Sprintf("%s:%d", ip, port), 5*time.Second); err != nil {
Expand Down

0 comments on commit 0cbe7eb

Please sign in to comment.