Skip to content

Commit

Permalink
use SSHBindAddress ass defauled scheduled server address
Browse files Browse the repository at this point in the history
  • Loading branch information
pbuetow committed Feb 11, 2020
1 parent f702aa9 commit 218344c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/server/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,15 @@ func (s *scheduler) runJobs(ctx context.Context) {
continue
}

servers := scheduled.Servers
if servers == "" {
servers = config.Server.SSHBindAddress
}

args := clients.Args{
ConnectionsPerCPU: 10,
Discovery: scheduled.Discovery,
ServersStr: scheduled.Servers,
ServersStr: servers,
What: files,
Mode: omode.MapClient,
UserName: config.ScheduledUser,
Expand Down

0 comments on commit 218344c

Please sign in to comment.