From 04bc1a77668a358404d16377706b573f0cd09349 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 29 Jan 2017 14:57:59 +1000 Subject: [PATCH] use sync.ankiweb.net for syncing media sync goes through the same domain now, avoiding a slow extra SSL handshake --- anki/consts.py | 4 ++-- anki/sync.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/anki/consts.py b/anki/consts.py index 40eaeef81..1ef0fd5c7 100644 --- a/anki/consts.py +++ b/anki/consts.py @@ -48,8 +48,8 @@ MODEL_CLOZE = 1 SCHEMA_VERSION = 11 SYNC_ZIP_SIZE = int(2.5*1024*1024) SYNC_ZIP_COUNT = 25 -SYNC_BASE = "https://ankiweb.net/" -SYNC_MEDIA_BASE = "https://msync.ankiweb.net/" +SYNC_BASE = "https://sync.ankiweb.net/" +SYNC_MEDIA_BASE = "https://sync.ankiweb.net/msync/" SYNC_VER = 8 HELP_SITE="http://ankisrs.net/docs/manual.html" diff --git a/anki/sync.py b/anki/sync.py index 1f17be924..895d01ee8 100644 --- a/anki/sync.py +++ b/anki/sync.py @@ -577,7 +577,7 @@ class RemoteServer(HttpSyncer): def syncURL(self): if os.getenv("ANKIDEV"): - return "https://l1.ankiweb.net/sync/" + return "https://l1sync.ankiweb.net/sync/" return SYNC_BASE + "sync/" def hostKey(self, user, pw):