Report whether SSL is required in discoverables, like /api/discovery_info and ZeroConf (#2192)

This commit is contained in:
Robbie Trencheny committed 2016-06-01 19:45:19 -07:00
1 parent 4e064f91fd
commit c856c67790
3 files changed
+6 -3

No files matched your search

+2 -1
View File
@@ -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)