fix: never try federation with self

merge-requests/508/head
Timo Kösters 12 months ago
parent 78e7b711df
commit c17187777f
No known key found for this signature in database
GPG Key ID: 0B25E636FBA7E4CB

@ -123,6 +123,12 @@ where
return Err(Error::bad_config("Federation is disabled."));
}
if destination == services().globals.server_name() {
return Err(Error::bad_config(
"Won't send federation request to ourselves",
));
}
debug!("Preparing to send request to {destination}");
let mut write_destination_to_cache = false;

Loading…
Cancel
Save