fix: never try federation with self
This commit is contained in:
parent
78e7b711df
commit
c17187777f
1 changed files with 6 additions and 0 deletions
|
@ -123,6 +123,12 @@ where
|
||||||
return Err(Error::bad_config("Federation is disabled."));
|
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}");
|
debug!("Preparing to send request to {destination}");
|
||||||
|
|
||||||
let mut write_destination_to_cache = false;
|
let mut write_destination_to_cache = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue