v0.25.5
This commit is contained in:
1 parent
1dea7f55c8
commit
c819f0a335
151 files changed
+7610
-4264
No files matched your search
@@ -45,7 +45,10 @@ async fn guard(State(state): State<Arc<App>>, mut request: Request, next: Next)
|
||||
Ok(None) => None,
|
||||
Ok(Some((key_id, token))) => {
|
||||
if peer.is_some_and(|peer| !peer.0.ip().is_loopback()) && scheme != "https" {
|
||||
return secure(reject(StatusCode::FORBIDDEN, "certificate_api.https_required"));
|
||||
return secure(reject(
|
||||
StatusCode::FORBIDDEN,
|
||||
"certificate_api.https_required",
|
||||
));
|
||||
}
|
||||
let token_hash = auth::secret_hash(&token);
|
||||
match state
|
||||
|
||||
Reference in new issue
Block a user