use sync.ankiweb.net for syncing

media sync goes through the same domain now, avoiding a slow extra
SSL handshake
This commit is contained in:
Damien Elmes 2017-01-29 14:57:59 +10:00
parent 9ed315cbb7
commit 04bc1a7766
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -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):