Skip to content

Commit 8eb1fad

Browse files
committed
Add missing CertificateManager import for macOS
The perform_tls_interception function uses CertificateManager::is_ca_trusted() on macOS but the import was missing from the main module (only present in tests). This caused compilation to fail on macOS CI. Added conditional import with #[cfg(target_os = "macos")] to match usage.
1 parent 0c5a02f commit 8eb1fad

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/proxy_tls.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ use crate::proxy::{
33
create_connect_403_response_with_context, create_forbidden_response,
44
};
55
use crate::rules::Action;
6+
#[cfg(target_os = "macos")]
7+
use crate::tls::CertificateManager;
68
use anyhow::Result;
79
use bytes::Bytes;
810
use http_body_util::{BodyExt, combinators::BoxBody};

0 commit comments

Comments
 (0)