Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added proxy flag for cli #3963

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

naman-bruno
Copy link
Contributor

Description

Added a --proxy flag in the CLI to allow users to enable or disable the system proxy. By default, the system proxy is off, and adding the --proxy flag turns it on.

Issue: Previously, when running any request in the CLI, the system proxy was always picked up, and the only way to disable it was by deleting the https_proxy environment variables. This flag provides a more convenient way to control proxy usage.

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.
Screen.Recording.2025-02-07.at.12.03.26.PM.mov

@@ -183,7 +184,7 @@ const runSingleRequest = async function (
if (collectionProxyEnabled === true) {
proxyConfig = collectionProxyConfig;
proxyMode = 'on';
} else {
} else if(proxy) {
// if the collection level proxy is not set, pick the system level proxy by default, to maintain backward compatibility
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this line make any sense now, what do we default to if the --proxy is not defined? @naman-bruno

@sanish-bruno
Copy link
Collaborator

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants