This commit is contained in:
Daniel 2023-06-19 21:27:53 +08:00
parent da750ccfd0
commit f37a358cd6
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
9 changed files with 91 additions and 28 deletions

View file

@ -573,7 +573,7 @@ func planSyncAfter(d time.Duration) {
}
func isProviderOnline(byHand bool) (ret bool) {
checkURL := util.SiYuanSyncServer
checkURL := util.ChinaSyncServer
skipTlsVerify := false
switch Conf.Sync.Provider {
case conf.ProviderSiYuan:
@ -744,7 +744,7 @@ var KernelID = gulu.Rand.String(7)
func dialSyncWebSocket() (c *websocket.Conn, err error) {
//endpoint := "ws://127.0.0.1:64388" + "/apis/siyuan/dejavu/ws"
endpoint := util.AliyunWebSocketServer + "/apis/siyuan/dejavu/ws"
endpoint := util.ChinaWebSocketServer + "/apis/siyuan/dejavu/ws"
header := http.Header{
"x-siyuan-uid": []string{Conf.User.UserId},
"x-siyuan-kernel": []string{KernelID},