Skip to content

Commit

Permalink
Fix silly method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
randomairborne committed Mar 25, 2024
1 parent 00e7912 commit 0573b0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ impl AppState {
/// This function can panic when its hardcoded values are invalid
/// or the passed `client_ip_name` is not a valid header name
pub fn new() -> Self {
let client_ip = valk_utils::get_var("CLIENT_IP_HEADER").ok();
let client_ip = valk_utils::get_var("CLIENT_IP_HEADER");
let root_dns_name: Arc<str> = valk_utils::get_var("ROOT_DNS_NAME").into();
let https = valk_utils::get_var("NO_HTTPS").is_err();
let https = std::env::var("NO_HTTPS").is_err();
Self {
header: client_ip.map(|v| Arc::new(HeaderName::try_from(v).unwrap())),
root_dns_name,
Expand Down

0 comments on commit 0573b0b

Please sign in to comment.