Fix forced SSL port rewrite

This commit is contained in:
Miroslav Štampar 2026-06-02 13:56:32 +02:00
parent bfe39d010f
commit 8cac5fdab6
3 changed files with 4 additions and 4 deletions

View file

@ -422,7 +422,7 @@ class Connect(object):
elif target:
if conf.forceSSL:
url = re.sub(r"(?i)\A(http|ws):", r"\g<1>s:", url)
url = re.sub(r"(?i):80/", ":443/", url)
url = re.sub(r"(?i):80(?=[/?#]|\Z)", ":443", url)
if PLACE.GET in conf.parameters and not get:
get = conf.parameters[PLACE.GET]