Disable ssl checking in synology client

This commit is contained in:
Alexandre Beloin 2015-02-05 10:24:54 -05:00
parent c62d8f2c79
commit c8f1eb6250
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class DownloadStationAPI(GenericClient):
auth_url = self.host + 'webapi/auth.cgi?api=SYNO.API.Auth&version=2&method=login&account=' + self.username + '&passwd=' + self.password + '&session=DownloadStation&format=sid'
try:
self.response = self.session.get(auth_url)
self.response = self.session.get(auth_url, verify=False)
self.auth = self.response.json()['data']['sid']
except:
return None