fix(client-ip): Fall back to peer IP instead of returning 500

This commit is contained in:
Erwan Leboucher authored and Ellis Git committed 2026-07-17 12:46:11 +00:00
1 parent eff454218c
commit 3a74ce6151
28 files changed
+163 -48

No files matched your search

+1 -2
View File
@@ -5,7 +5,6 @@ use std::{
};
use axum::extract::State;
use axum_client_ip::ClientIp;
use conduwuit::{
Err, Error, Result, debug, debug_error, debug_warn, err, error,
result::LogErr,
@@ -47,7 +46,7 @@ use service::{
use tokio::sync::watch::{Receiver, Sender};
use tracing::instrument;
use crate::Ruma;
use crate::{Ruma, client_ip::ClientIp};
type ResolvedMap = BTreeMap<OwnedEventId, Result>;
type Pdu = (OwnedRoomId, OwnedEventId, CanonicalJsonObject);