mirror of
https://github.com/telemt/telemt.git
synced 2026-10-11 11:55:59 +03:00
WEB: Base Path added
This commit is contained in:
@@ -9,7 +9,9 @@ use super::state::{
|
||||
Bootstrap, CarrierChainPhase, allow_rate, evict_oldest_unused_bootstrap, matching_profile,
|
||||
new_unique_token, profile_key, remove_expired_locked,
|
||||
};
|
||||
use super::{BootstrapResult, ManagerError, TOKEN_BYTES, TokenHash, WebProcessRuntime};
|
||||
use super::{
|
||||
BootstrapResult, ManagerError, TOKEN_BYTES, TokenHash, TokenKind, WebProcessRuntime,
|
||||
};
|
||||
use crate::config::WebRuntimeProfile;
|
||||
use crate::maestro::generation::RuntimeGeneration;
|
||||
use crate::web::session::{SessionCloseReason, WebSession};
|
||||
@@ -123,7 +125,12 @@ impl WebProcessRuntime {
|
||||
.record_rejection(WebRejectionReason::BootstrapCapacity);
|
||||
return Err(ManagerError::Limit);
|
||||
}
|
||||
let Some((token, hash)) = new_unique_token(generation, &state) else {
|
||||
let Some((token, hash)) = new_unique_token(
|
||||
generation,
|
||||
&state,
|
||||
&self.token_authenticator,
|
||||
TokenKind::Bootstrap,
|
||||
) else {
|
||||
self.record_limit_hit();
|
||||
self.telemetry
|
||||
.record_rejection(WebRejectionReason::BootstrapCapacity);
|
||||
|
||||
Reference in New Issue
Block a user