chore: put crypto provider logic in a shared crate

This commit is contained in:
Michael Bolin
2026-02-10 00:37:07 -08:00
parent 3391e5ea86
commit a9ef8a91da
8 changed files with 40 additions and 9 deletions

View File

@@ -8,6 +8,7 @@ use crate::state::NetworkProxyState;
use anyhow::Context;
use anyhow::Result;
use clap::Parser;
use codex_utils_rustls_provider::ensure_rustls_crypto_provider;
use std::collections::HashMap;
use std::net::SocketAddr;
use std::net::TcpListener as StdTcpListener;
@@ -381,6 +382,8 @@ impl NetworkProxy {
return Ok(NetworkProxyHandle::noop());
}
ensure_rustls_crypto_provider();
if !unix_socket_permissions_supported() {
warn!("allowUnixSockets is macOS-only; requests will be rejected on this platform");
}