proxy_type 'simple' renamed to 'forward'

This commit is contained in:
Karl Seguin
2025-06-25 12:21:44 +08:00
parent c97a32e24b
commit 1e7ee4e0a1
2 changed files with 4 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ const BUFFER_LEN = 32 * 1024;
const MAX_HEADER_LINE_LEN = 4096;
pub const ProxyType = enum {
simple,
forward,
connect,
};
@@ -202,7 +202,7 @@ pub const Client = struct {
fn isSimpleProxy(self: *const Client) bool {
const proxy_type = self.proxy_type orelse return false;
return proxy_type == .simple;
return proxy_type == .forward;
}
};

View File

@@ -226,10 +226,10 @@ const Command = struct {
\\--http_proxy The HTTP proxy to use for all HTTP requests.
\\ Defaults to none.
\\
\\--proxy_type The type of proxy: connect, simple.
\\--proxy_type The type of proxy: connect, forward.
\\ 'connect' creates a tunnel through the proxy via
\\ and initial CONNECT request.
\\ 'simple' sends the full URL in the request target
\\ 'forward' sends the full URL in the request target
\\ and expects the proxy to MITM the request.
\\ Defaults to connect when --http_proxy is set.
\\