mirror of
https://github.com/harness/drone.git
synced 2025-05-09 02:31:38 +08:00
Merge pull request #175 from miracle2k/patch-1
Support DOCKER_HOST w/o protocol
This commit is contained in:
commit
d406aab849
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user