From 229b7d1b2268ed5f64d3c5413e94f32ee0e27968 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 28 May 2012 20:37:25 +0900 Subject: [PATCH] use primary url --- anki/consts.py | 2 +- anki/sync.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/anki/consts.py b/anki/consts.py index 0c302ba58..805e50b2e 100644 --- a/anki/consts.py +++ b/anki/consts.py @@ -43,7 +43,7 @@ MODEL_CLOZE = 1 # deck schema & syncing vars SCHEMA_VERSION = 11 SYNC_ZIP_SIZE = int(2.5*1024*1024) -SYNC_URL = os.environ.get("SYNC_URL") or "https://beta.ankiweb.net/sync/" +SYNC_URL = os.environ.get("SYNC_URL") or "https://ankiweb.net/sync/" SYNC_VER = 5 HELP_SITE="http://ankisrs.net/docs/dev/manual.html" diff --git a/anki/sync.py b/anki/sync.py index 94c35ece7..9202b579e 100644 --- a/anki/sync.py +++ b/anki/sync.py @@ -23,9 +23,7 @@ HTTP_PROXY = None def httpCon(): return httplib2.Http( timeout=HTTP_TIMEOUT, ca_certs=HTTP_CERTS, - proxy_info=HTTP_PROXY, - # python2 doesn't support SNI - disable_ssl_certificate_validation="beta" in SYNC_URL) + proxy_info=HTTP_PROXY) # Proxy handling ######################################################################