Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
hoping committed Jul 22, 2024
1 parent 22446c8 commit 4051edf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use std::panic;

use backtrace::Backtrace;
use rustls::crypto::ring::default_provider;

use crate::config::{Mode, OPTIONS};

Expand Down Expand Up @@ -50,6 +51,8 @@ fn main() {
}
}
}));
let provider = default_provider();
provider.install_default().unwrap();
if let Err(err) = match OPTIONS.mode {
Mode::Proxy(_) => {
log::warn!(
Expand Down

0 comments on commit 4051edf

Please sign in to comment.