added init

This commit is contained in:
mamoniot 2023-03-09 11:54:12 -05:00
parent c14f2edff6
commit 3751397655
No known key found for this signature in database
GPG key ID: ADCCDBBE0E3D3B3B

View file

@ -150,6 +150,7 @@ impl<Application: ApplicationLayer> Context<Application> {
/// ///
/// * `max_incomplete_session_queue_size` - Maximum number of incomplete sessions in negotiation phase /// * `max_incomplete_session_queue_size` - Maximum number of incomplete sessions in negotiation phase
pub fn new(max_incomplete_session_queue_size: usize) -> Self { pub fn new(max_incomplete_session_queue_size: usize) -> Self {
zerotier_crypto::init();
Self { Self {
max_incomplete_session_queue_size, max_incomplete_session_queue_size,
defrag: Mutex::new(HashMap::new()), defrag: Mutex::new(HashMap::new()),