mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 00:46:30 +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 {
|
||||
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 a new issue