mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
Updated STS handling to require an explicit port in insecure-connection capability upgrades, ignoring incomplete policies without upgrading.
This commit is contained in:
@@ -553,15 +553,7 @@ sts_handle_capability (struct server *serv, const char *value)
|
||||
{
|
||||
if (!has_port)
|
||||
{
|
||||
if (serv->port > 0)
|
||||
{
|
||||
port = (guint16) serv->port;
|
||||
has_port = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
#ifdef USE_OPENSSL
|
||||
if (serv->sts_upgrade_in_progress)
|
||||
|
||||
Reference in New Issue
Block a user