s2s: apply METADATA accountname only from a services source

This commit is contained in:
Jean Chevronnet 2026-08-16 17:48:21 +00:00
parent 04423388d5
commit 9ff0d8c629

View file

@ -808,6 +808,11 @@ impl Server {
return; return;
}; };
if key == "accountname" { if key == "accountname" {
// account login is a services authority: ignore it from an ordinary peer
// (each hop re-checks, so forwarding an unauthorised one stays harmless).
if !self.source_is_service(msg) {
return;
}
if value.is_empty() || value == "*" { if value.is_empty() || value == "*" {
self.logout(tuid); self.logout(tuid);
} else { } else {