mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
Improve comment explaining tunnel agent usage for proxy scenarios
Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com>
This commit is contained in:
@@ -199,7 +199,10 @@ function buildAgent(
|
||||
});
|
||||
|
||||
if (parsedProxyURL.tunnelMethod?.startsWith("httpOver")) {
|
||||
// Use tunnel agent for HTTP-over-HTTP/HTTPS proxy scenarios
|
||||
// Use tunnel agent for HTTP-over-HTTP/HTTPS proxy scenarios.
|
||||
// Tunnel agents properly handle protocol differences and proxy authentication
|
||||
// without requiring URL manipulation, unlike useFilteringAgent which would
|
||||
// fail with protocol validation errors if passed a modified proxy URL.
|
||||
agent = buildTunnel(parsedProxyURL, agentOptions);
|
||||
} else {
|
||||
// Note request filtering agent does not support https tunneling via a proxy
|
||||
|
||||
Reference in New Issue
Block a user