Add per-user history logging toggle. Uncheck to disable history logging for specific user.

On SSL cert bypass check that the method is available before allowing.
This commit is contained in:
Tim 2015-08-13 23:05:09 +02:00
parent b0ded77571
commit 0877a6bf21
6 changed files with 61 additions and 15 deletions

View file

@ -52,7 +52,7 @@ class HTTPHandler(object):
if uri:
if proto.upper() == 'HTTPS':
if not self.ssl_verify:
if not self.ssl_verify and hasattr(ssl, '_create_unverified_context'):
context = ssl._create_unverified_context()
handler = HTTPSConnection(host=self.host, port=self.port, timeout=10, context=context)
logger.warn(u"PlexPy HTTP Handler :: Unverified HTTPS request made. This connection is not secure.")