You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You should observe the host applying the proxy settings to the request instead of observing the specified no_proxy configuration
Describe the bug
The bypassProxy implementation does not check/parse the hostname from any port specification in the request.
This causes any requests to hosts in the no_proxy configuration using a specified port to have proxy configurations applied.
Suggested fix
host = host.split(':').at(0);
Additional context
There is an existing workaround to this issue by specifying the host with the port in the no_proxy variable
This would correctly bypass the proxy settings in the current implementation.
Environment
Node
21.6.1
node-fetch-native
1.6.4
Reproduction
Make any request specifying port in the url to a host that is on the noProxy list.
You should observe the host applying the proxy settings to the request instead of observing the specified no_proxy configuration
Describe the bug
The bypassProxy implementation does not check/parse the hostname from any port specification in the request.
This causes any requests to hosts in the no_proxy configuration using a specified port to have proxy configurations applied.
Suggested fix
Additional context
There is an existing workaround to this issue by specifying the host with the port in the no_proxy variable
This would correctly bypass the proxy settings in the current implementation.
Logs
No response
The text was updated successfully, but these errors were encountered: