mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🐛 S3 synchronization online check not using configured endpoint Fix https://github.com/siyuan-note/siyuan/issues/7831
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user