mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
use primary url
This commit is contained in:
parent
af97497747
commit
229b7d1b22
2 changed files with 2 additions and 4 deletions
|
@ -43,7 +43,7 @@ MODEL_CLOZE = 1
|
||||||
# deck schema & syncing vars
|
# deck schema & syncing vars
|
||||||
SCHEMA_VERSION = 11
|
SCHEMA_VERSION = 11
|
||||||
SYNC_ZIP_SIZE = int(2.5*1024*1024)
|
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
|
SYNC_VER = 5
|
||||||
|
|
||||||
HELP_SITE="http://ankisrs.net/docs/dev/manual.html"
|
HELP_SITE="http://ankisrs.net/docs/dev/manual.html"
|
||||||
|
|
|
@ -23,9 +23,7 @@ HTTP_PROXY = None
|
||||||
def httpCon():
|
def httpCon():
|
||||||
return httplib2.Http(
|
return httplib2.Http(
|
||||||
timeout=HTTP_TIMEOUT, ca_certs=HTTP_CERTS,
|
timeout=HTTP_TIMEOUT, ca_certs=HTTP_CERTS,
|
||||||
proxy_info=HTTP_PROXY,
|
proxy_info=HTTP_PROXY)
|
||||||
# python2 doesn't support SNI
|
|
||||||
disable_ssl_certificate_validation="beta" in SYNC_URL)
|
|
||||||
|
|
||||||
# Proxy handling
|
# Proxy handling
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
Loading…
Reference in a new issue