Browse Source

:bug: S3 synchronization online check not using configured endpoint Fix https://github.com/siyuan-note/siyuan/issues/7831

Liang Ding 2 years ago
parent
commit
4fa0c283ff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kernel/util/net.go

+ 1 - 1
kernel/util/net.go

@@ -59,7 +59,7 @@ func IsOnline(checkURL string) bool {
 
 func isOnline(checkURL string) bool {
 	c := req.C().SetTimeout(1 * time.Second)
-	_, err := c.R().Head("https://www.baidu.com")
+	_, err := c.R().Head(checkURL)
 	return nil == err
 }