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

This commit is contained in:
Robbie Trencheny 2016-06-01 19:45:19 -07:00
parent 4e064f91fd
commit c856c67790
3 changed files with 6 additions and 3 deletions

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)