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
@@ -1,7 +1,6 @@
use std::collections::{HashMap, hash_map::Entry};
use axum::extract::State;
use axum_client_ip::ClientIp;
use base64::{Engine as _, engine::general_purpose};
use conduwuit::{
Err, Error, EventTypeExt, PduEvent, Result, debug, err, error,
@@ -23,7 +22,7 @@ use ruma::{
};
use serde::Deserialize;
use crate::{Ruma, server::utils::validate_any_membership_event};
use crate::{Ruma, client_ip::ClientIp, server::utils::validate_any_membership_event};
/// # `PUT /_matrix/federation/v2/invite/{roomId}/{eventId}`
///