1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-12-27 11:34:27 +01:00

fix: never try federation with self

This commit is contained in:
Timo Kösters 2023-07-10 16:26:36 +02:00
parent 78e7b711df
commit c17187777f
No known key found for this signature in database
GPG key ID: 0B25E636FBA7E4CB

View file

@ -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;