use primary url

This commit is contained in:
Damien Elmes 2012-05-28 20:37:25 +09:00
parent af97497747
commit 229b7d1b22
2 changed files with 2 additions and 4 deletions

View file

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

View file

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