Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Clean code

Daniel4749d0fca559
diff --git a/kernel/model/sync.go b/kernel/model/sync.go
index 7bd209ee9f..b1e15d1513 100644
--- a/kernel/model/sync.go
+++ b/kernel/model/sync.go
@@ -716,11 +716,12 @@ func planSyncAfter(d time.Duration) {
}
func isProviderOnline(byHand bool) (ret bool) {
- checkURL := util.GetCloudSyncServer()
+ var checkURL string
skipTlsVerify := false
timeout := 3000
switch Conf.Sync.Provider {
case conf.ProviderSiYuan:
+ checkURL = util.GetCloudSyncServer()
case conf.ProviderS3:
checkURL = Conf.Sync.S3.Endpoint
skipTlsVerify = Conf.Sync.S3.SkipTlsVerify