From ed261141f523de44a468971dfbd1ddd456437c0c Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 16 Apr 2022 21:11:05 +0800 Subject: [PATCH] fix --- app.go | 4 +++- version.go | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app.go b/app.go index 25e1ee0..cf67697 100644 --- a/app.go +++ b/app.go @@ -516,7 +516,9 @@ func (a AppConfig) RefreshSnapshot() error { refreshSnapshot[v.Box()] = struct{}{} } for _, v := range a.Destinations { - refreshSnapshot[v.Box()] = struct{}{} + if cfg.Box[v.Box()].online { + refreshSnapshot[v.Box()] = struct{}{} + } } for k, _ := range refreshSnapshot { if *debugFlag { diff --git a/version.go b/version.go index 4447514..e6a16ab 100644 --- a/version.go +++ b/version.go @@ -1,6 +1,6 @@ // Code generated by version.sh (@generated) DO NOT EDIT. package main -var githash = "fd62711" -var buildstamp = "2022-04-16_13:08:54" -var commits = "30" -var version = "fd62711-b30 - 2022-04-16_13:08:54" +var githash = "cddb222" +var buildstamp = "2022-04-16_13:10:55" +var commits = "31" +var version = "cddb222-b31 - 2022-04-16_13:10:55"