Remove legacy token validation field
This commit is contained in:
parent
bd306455bc
commit
acd37297fd
2 changed files with 0 additions and 29 deletions
15
src/ping.rs
15
src/ping.rs
|
@ -85,8 +85,6 @@ pub struct OkResponse {
|
|||
pub token_key: Option<String>,
|
||||
pub compromised: bool,
|
||||
pub paused: bool,
|
||||
#[serde(default)]
|
||||
pub force_tokens: bool,
|
||||
pub tls: Option<Tls>,
|
||||
}
|
||||
|
||||
|
@ -209,19 +207,6 @@ pub async fn update_server_state(
|
|||
}
|
||||
}
|
||||
|
||||
if !cli
|
||||
.unstable_options
|
||||
.contains(&UnstableOptions::DisableTokenValidation)
|
||||
&& VALIDATE_TOKENS.load(Ordering::Acquire) != resp.force_tokens
|
||||
{
|
||||
if resp.force_tokens {
|
||||
info!("Client received command to enforce token validity.");
|
||||
} else {
|
||||
info!("Client received command to no longer enforce token validity");
|
||||
}
|
||||
VALIDATE_TOKENS.store(resp.force_tokens, Ordering::Release);
|
||||
}
|
||||
|
||||
if let Some(tls) = resp.tls {
|
||||
TLS_PREVIOUSLY_CREATED
|
||||
.get()
|
||||
|
|
14
src/state.rs
14
src/state.rs
|
@ -90,20 +90,6 @@ impl ServerState {
|
|||
|
||||
info!("This client's URL has been set to {}", resp.url);
|
||||
|
||||
if config
|
||||
.unstable_options
|
||||
.contains(&UnstableOptions::DisableTokenValidation)
|
||||
{
|
||||
warn!("Token validation is explicitly disabled!");
|
||||
} else {
|
||||
if resp.force_tokens {
|
||||
info!("This client will validate tokens.");
|
||||
} else {
|
||||
info!("This client will not validate tokens.");
|
||||
}
|
||||
VALIDATE_TOKENS.store(resp.force_tokens, Ordering::Release);
|
||||
}
|
||||
|
||||
let tls = resp.tls.unwrap();
|
||||
std::mem::drop(
|
||||
TLS_PREVIOUSLY_CREATED.set(ArcSwap::from_pointee(tls.created_at)),
|
||||
|
|
Loading…
Reference in a new issue