Remove default proxy

This commit is contained in:
Max Ziermann
2020-03-06 18:07:54 +01:00
parent 28c6f3f2a1
commit b3e6b80cac

View File

@@ -11,8 +11,9 @@ class Camera(APIHandler):
:param username:
:param password:
"""
# For when you need to connect to a camera behind a proxy
APIHandler.__init__(self, ip, username, password, proxy={"http": "socks5://127.0.0.1:8000"}, https=https)
# For when you need to connect to a camera behind a proxy, pass
# a proxy argument: proxy={"http": "socks5://127.0.0.1:8000"}
APIHandler.__init__(self, ip, username, password, https=https)
# Normal call without proxy:
# APIHandler.__init__(self, ip, username, password)