mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
allow the default proxy to be overridden
This commit is contained in:
parent
cbb472712b
commit
e644cc1faa
1 changed files with 2 additions and 0 deletions
|
@ -15,10 +15,12 @@ from hooks import runHook
|
|||
# syncing vars
|
||||
HTTP_CERTS = os.path.join(os.path.dirname(__file__), "ankiweb.certs")
|
||||
HTTP_TIMEOUT = 30
|
||||
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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue