mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-11 03:39:49 +08:00
Merge remote-tracking branch 'origin/pr/462'
This commit is contained in:
@@ -110,6 +110,7 @@ pub(crate) async fn maybe_build_local_public_support_response(
|
||||
state: &AppState,
|
||||
request_context: &GatewayPublicRequestContext,
|
||||
headers: &http::HeaderMap,
|
||||
cf_connecting_ip: Option<&str>,
|
||||
request_body: Option<&Bytes>,
|
||||
) -> Option<Response<Body>> {
|
||||
let decision = request_context.control_decision.as_ref()?;
|
||||
@@ -118,8 +119,14 @@ pub(crate) async fn maybe_build_local_public_support_response(
|
||||
}
|
||||
|
||||
if decision.route_family.as_deref() == Some("auth") {
|
||||
return maybe_build_local_auth_response(state, request_context, headers, request_body)
|
||||
.await;
|
||||
return maybe_build_local_auth_response(
|
||||
state,
|
||||
request_context,
|
||||
headers,
|
||||
cf_connecting_ip,
|
||||
request_body,
|
||||
)
|
||||
.await;
|
||||
}
|
||||
|
||||
if decision.route_family.as_deref() == Some("oauth") {
|
||||
|
||||
Reference in New Issue
Block a user