Revert "ircv3 STS: advertise sts= (port on plaintext, duration/preload on tls) — the modern tls-upgrade cap"

This reverts commit e0b22a34d0.
This commit is contained in:
Jean Chevronnet 2026-08-08 21:51:06 +00:00
parent 6cf9f01ff8
commit 045e7d3ee7
4 changed files with 8 additions and 55 deletions

View file

@ -67,9 +67,6 @@ impl Command for Rehash {
s.dnsbl_action = fresh.dnsbl_action;
s.dnsbl_reason = fresh.dnsbl_reason;
s.sasl_server = fresh.sasl_server;
s.sts_duration = fresh.sts_duration;
s.sts_port = fresh.sts_port;
s.sts_preload = fresh.sts_preload;
s.announce("Server configuration reloaded.");
s.numeric(uid, RPL_REHASHING, &format!("{path} :Rehashing"));
}

View file

@ -124,12 +124,14 @@ impl Command for Cap {
u.cap = true; // hold registration until CAP END
u.cap_302 |= cap302;
}
let mut caps = Caps::ls_line(cap302, secure);
if let Some(sts) = s.sts_token(secure) {
caps.push(' ');
caps.push_str(&sts); // IRCv3 STS — advertised, not REQ-able
}
s.send(uid, format!(":{} CAP {who} LS :{caps}", s.name));
s.send(
uid,
format!(
":{} CAP {who} LS :{}",
s.name,
Caps::ls_line(cap302, secure)
),
);
}
"REQ" => {
if let Some(u) = s.users.get_mut(&uid) {