mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Use native DNS resolution for the network proxy on macOS (#45982)
## Why The default resolver misses macOS supplemental resolvers and VPN split DNS, preventing Codex from reaching hosts that depend on those DNS settings. ## What changed Use `tokio::net::lookup_host` for IPv4 and IPv6 lookups in the macOS TCP connector, including connections to upstream proxies. Preserve existing checks on resolved destination addresses and reject unsupported TXT lookups without falling back to a different resolver. ## Testing Add macOS tests for IPv4 and IPv6 localhost resolution and connections, local-network rejection, and resolving the upstream proxy instead of the destination. GitOrigin-RevId: 3c7fc4f8b309e26b02923d8fafd4e1f1e1f7755f
This commit is contained in:
1 parent
7b6dd0c7b8
commit
53401a2808
6 files changed
+163
-2
No files matched your search
Generated
+1
@@ -4126,6 +4126,7 @@ dependencies = [
|
||||
"opentelemetry",
|
||||
"pretty_assertions",
|
||||
"rama-core",
|
||||
"rama-dns",
|
||||
"rama-http",
|
||||
"rama-http-backend",
|
||||
"rama-net",
|
||||
|
||||
Reference in new issue
Block a user