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

This commit is contained in:
Liang Ding 2023-03-30 18:17:14 +08:00
parent 1917857b60
commit 4fa0c283ff
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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
}