Report whether SSL is required in discoverables, like /api/discovery_info and ZeroConf (#2192)
This commit is contained in:
1 parent
4e064f91fd
commit
c856c67790
3 files changed
+6
-3
No files matched your search
@@ -55,7 +55,8 @@ class API(object):
|
||||
self.host = host
|
||||
self.port = port or SERVER_PORT
|
||||
self.api_password = api_password
|
||||
if use_ssl:
|
||||
self.use_ssl = use_ssl
|
||||
if self.use_ssl:
|
||||
self.base_url = "https://{}:{}".format(host, self.port)
|
||||
else:
|
||||
self.base_url = "http://{}:{}".format(host, self.port)
|
||||
|
||||
Reference in new issue
Block a user