Report whether SSL is required in discoverables, like /api/discovery_info and ZeroConf (#2192)
This commit is contained in:
parent
4e064f91fd
commit
c856c67790
3 changed files with 6 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue