only send with online boxes

This commit is contained in:
shoopea 2022-06-17 22:11:20 +08:00
parent 9594fd7970
commit 7c309b850b
2 changed files with 73 additions and 71 deletions

2
app.go
View File

@ -578,6 +578,7 @@ func (a AppConfig) SendSnapshots() (err error) {
}
for _, src := range a.Sources {
if cfg.Box[src.Box()].online {
for _, dest := range a.Destinations {
if cfg.Box[dest.Box()].online {
if *debugFlag {
@ -669,6 +670,7 @@ func (a AppConfig) SendSnapshots() (err error) {
}
}
}
}
err = nil
return
}

View File

@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT.
package main
var githash = "23d7d90"
var buildstamp = "2022-06-17_14:07:22"
var commits = "40"
var version = "23d7d90-b40 - 2022-06-17_14:07:22"
var githash = "9594fd7"
var buildstamp = "2022-06-17_14:11:08"
var commits = "41"
var version = "9594fd7-b41 - 2022-06-17_14:11:08"