s2s: apply METADATA accountname only from a services source
This commit is contained in:
parent
04423388d5
commit
9ff0d8c629
1 changed files with 5 additions and 0 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue