mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -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
|
||||
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"
|
||||
|
|
|
@ -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
|
||||
######################################################################
|
||||
|
|
Loading…
Reference in a new issue