mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
proxy_type 'simple' renamed to 'forward'
This commit is contained in:
@@ -42,7 +42,7 @@ const BUFFER_LEN = 32 * 1024;
|
|||||||
const MAX_HEADER_LINE_LEN = 4096;
|
const MAX_HEADER_LINE_LEN = 4096;
|
||||||
|
|
||||||
pub const ProxyType = enum {
|
pub const ProxyType = enum {
|
||||||
simple,
|
forward,
|
||||||
connect,
|
connect,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -202,7 +202,7 @@ pub const Client = struct {
|
|||||||
|
|
||||||
fn isSimpleProxy(self: *const Client) bool {
|
fn isSimpleProxy(self: *const Client) bool {
|
||||||
const proxy_type = self.proxy_type orelse return false;
|
const proxy_type = self.proxy_type orelse return false;
|
||||||
return proxy_type == .simple;
|
return proxy_type == .forward;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -226,10 +226,10 @@ const Command = struct {
|
|||||||
\\--http_proxy The HTTP proxy to use for all HTTP requests.
|
\\--http_proxy The HTTP proxy to use for all HTTP requests.
|
||||||
\\ Defaults to none.
|
\\ 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
|
\\ 'connect' creates a tunnel through the proxy via
|
||||||
\\ and initial CONNECT request.
|
\\ 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.
|
\\ and expects the proxy to MITM the request.
|
||||||
\\ Defaults to connect when --http_proxy is set.
|
\\ Defaults to connect when --http_proxy is set.
|
||||||
\\
|
\\
|
||||||
|
|||||||
Reference in New Issue
Block a user