Merge pull request #175 from miracle2k/patch-1

Support DOCKER_HOST w/o protocol
This commit is contained in:
Brad Rydzewski 2014-03-09 12:47:37 -07:00
commit d406aab849

View file

@ -78,6 +78,8 @@ func (c *Client) setHost(defaultUnixSocket string) {
if len(pieces) == 2 {
c.proto = pieces[0]
c.addr = pieces[1]
} else if len(pieces) == 1 {
c.addr = pieces[0]
}
} else {
// if the default socket doesn't exist then