mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 08:56:29 +00:00
Merge pull request #175 from miracle2k/patch-1
Support DOCKER_HOST w/o protocol
This commit is contained in:
commit
d406aab849
1 changed files with 2 additions and 0 deletions
|
@ -78,6 +78,8 @@ func (c *Client) setHost(defaultUnixSocket string) {
|
||||||
if len(pieces) == 2 {
|
if len(pieces) == 2 {
|
||||||
c.proto = pieces[0]
|
c.proto = pieces[0]
|
||||||
c.addr = pieces[1]
|
c.addr = pieces[1]
|
||||||
|
} else if len(pieces) == 1 {
|
||||||
|
c.addr = pieces[0]
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// if the default socket doesn't exist then
|
// if the default socket doesn't exist then
|
||||||
|
|
Loading…
Reference in a new issue