if protocol https choose port 443

This commit is contained in:
rllola 2019-03-10 22:19:37 +01:00
parent fb836fcf6f
commit 58516913b4

View file

@ -177,6 +177,8 @@ class SiteAnnouncer(object):
except ValueError as err:
ip = address
port = 80
if protocol.startswith("https"):
port = 443
back = {}
back["protocol"] = protocol
back["address"] = address