use https with port 7130 and mention the behaviour in the docs

This commit is contained in:
alfrix
2022-11-18 13:54:16 -03:00
parent 5d12addbba
commit c3c28175ca
2 changed files with 2 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ class KlippyRest:
@property
def endpoint(self):
protocol = "http"
if int(self.port) == 443:
if int(self.port) in {443, 7130}:
protocol = "https"
return f"{protocol}://{self.ip}:{self.port}"