mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-11-04 15:55:41 +00:00
Updated STS upgrade handling to fall back to the current connection port when servers omit a port in the STS capability, enabling TLS upgrades for non-TLS connections in that case.
This commit is contained in:
1 parent
a0f0c48bc5
commit
bc1d2e5f7a
1 file changed
+9
-1
+9
-1
@@ -553,7 +553,15 @@ sts_handle_capability (struct server *serv, const char *value)
|
||||
{
|
||||
if (!has_port)
|
||||
{
|
||||
return FALSE;
|
||||
if (serv->port > 0)
|
||||
{
|
||||
port = (guint16) serv->port;
|
||||
has_port = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
#ifdef USE_OPENSSL
|
||||
if (serv->sts_upgrade_in_progress)
|
||||
|
||||
Reference in new issue
Block a user