mirror of
https://github.com/openai/codex.git
synced 2026-11-19 07:03:23 +00:00
Add SOCKS5 TCP MITM coverage (#22685)
## Summary - reuse the MITM HTTPS serving path for raw SOCKS5 TCP streams - route limited-mode and hooked SOCKS5 TCP requests through MITM before dialing upstream - keep SOCKS5 UDP limited-mode behavior unchanged ## Validation - `just fmt` - `just test -p codex-network-proxy` - `just fix -p codex-network-proxy` - `git diff --check`
This commit is contained in:
1 parent
7a7cee1be4
commit
472619f9fc
4 files changed
+419
-128
No files matched your search
@@ -276,7 +276,7 @@ impl NetworkProxySettings {
|
||||
pub enum NetworkMode {
|
||||
/// Limited (read-only) access: only GET/HEAD/OPTIONS are allowed for HTTP. HTTPS CONNECT is
|
||||
/// blocked unless MITM is enabled so the proxy can enforce method policy on inner requests.
|
||||
/// SOCKS5 remains blocked in limited mode.
|
||||
/// SOCKS5 UDP and non-HTTPS SOCKS5 TCP remain blocked in limited mode.
|
||||
Limited,
|
||||
/// Full network access: all HTTP methods are allowed. HTTPS CONNECTs are tunneled directly.
|
||||
/// MITM hooks do not currently make full mode enter MITM.
|
||||
|
||||
Reference in new issue
Block a user