From 58516913b446c7dd7f02a903e1522c205d6f53cf Mon Sep 17 00:00:00 2001 From: rllola Date: Sun, 10 Mar 2019 22:19:37 +0100 Subject: [PATCH] if protocol https choose port 443 --- src/Site/SiteAnnouncer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Site/SiteAnnouncer.py b/src/Site/SiteAnnouncer.py index c0c575dc3..48a05e69c 100644 --- a/src/Site/SiteAnnouncer.py +++ b/src/Site/SiteAnnouncer.py @@ -177,6 +177,8 @@ def getAddressParts(self, tracker): except ValueError as err: ip = address port = 80 + if protocol.startswith("https"): + port = 443 back = {} back["protocol"] = protocol back["address"] = address