Bump version to 1.0.18

This commit is contained in:
2026-07-09 12:43:13 -04:00
parent f92b03c0ce
commit 73cad44769
4 changed files with 38 additions and 14 deletions
+10 -4
View File
@@ -261,11 +261,17 @@ func (e *Engine) Run(ctx context.Context, jobID int64, pairID int64) error {
var result *RsyncResult
if isRemoteToRemote(srcMachine, dstMachine) {
destPrivKey, err := e.resolveSSHKey(dstMachine)
if err != nil {
slog.Warn("failed to resolve destination SSH key, using server key", "error", err)
destPrivKey = filepath.Join(e.cfg.SSHDir(), "id_ed25519")
}
result, err = runner.RunRemote(jobCtx, cfg, RemoteMachine{
Host: srcMachine.Host,
Port: srcMachine.Port,
SSHUser: srcMachine.SSHUser,
PrivKey: privKey,
Host: srcMachine.Host,
Port: srcMachine.Port,
SSHUser: srcMachine.SSHUser,
PrivKey: privKey,
DestPrivKey: destPrivKey,
}, onLine)
} else {
result, err = runner.Run(jobCtx, cfg, onLine)