mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 19:35:41 +03:00
Merge pull request #897 from hashicorp/syslog-addr
Using unix domain sockets for docker syslog collector
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"net"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@@ -260,9 +261,11 @@ func (a *Agent) setupClient() error {
|
||||
return fmt.Errorf("client setup failed: %v", err)
|
||||
}
|
||||
|
||||
// Reserve some ports for the plugins
|
||||
if err := a.reservePortsForClient(conf); err != nil {
|
||||
return err
|
||||
// Reserve some ports for the plugins if we are on Windows
|
||||
if runtime.GOOS == "windows" {
|
||||
if err := a.reservePortsForClient(conf); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
// Create the client
|
||||
|
||||
Reference in New Issue
Block a user