mirror of
https://github.com/astro/buzzrelay.git
synced 2024-11-23 20:40:59 +00:00
actor: prevent relaying back to the originating instance
This commit is contained in:
parent
4d74af642e
commit
f55ee48c03
1 changed files with 4 additions and 0 deletions
|
@ -194,6 +194,10 @@ pub fn spawn(
|
|||
}
|
||||
seen_inboxes.insert(inbox);
|
||||
|
||||
// Prevent relaying back to the originating instance.
|
||||
if inbox_url.host_str() == post_url_url.host_str() {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Lookup/create worker queue per inbox.
|
||||
let tx = workers.entry(inbox_url.host_str().unwrap_or("").to_string())
|
||||
|
|
Loading…
Reference in a new issue