-
Notifications
You must be signed in to change notification settings - Fork 151
test: add ignoreUpstreamProxyCertificate tests #582
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
Closed
lewis-wow
wants to merge
88
commits into
develop
from
test/add-ignore-upstream-proxy-certificate-test
Closed
test: add ignoreUpstreamProxyCertificate tests #582
lewis-wow
wants to merge
88
commits into
develop
from
test/add-ignore-upstream-proxy-certificate-test
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: Martin Adámek <banan23@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat: incremental ids * fix
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* refactor: avoid accessing in custom_connect * refactor: move asyncWrite into customConnect * refactor: call asyncWrite directly
* Update README.md * Update README.md * Update README.md
This allows usage of SOCKS protocols with `anonymizeProxy`.
Fix for issue #563 --------- Co-authored-by: Jiří Moravčík <jiri.moravcik@gmail.com>
This PR attempts to fix incorrect stats due to the reuse of target sockets for HTTP(S) protocols. Based on #572 Note: I was forced to upgrade `actions/cache` as `v2` was deprecated and it wouldn't run with it. I also had to edit eslint config to run with `.` instead of `src` and excluded `tests`, because with `src` the CI was failing (no idea why).
…ors (#577) This PR adds support for a new boolean option `ignoreProxyCertificate`. If set to `true`, certificate errors will be ignored, which can be useful for HTTPS proxies with self-signed certificates. Usage: ``` const server = new Server({ prepareRequestFunction: () => ({ upstreamProxyUrl: 'https://user:pass@myproxy:8080', ignoreUpstreamProxyCertificate: true // Useful for self-signed cert }) }).listen(); ``` Anonymize: ``` anonymizeProxy({ url: 'https://user:pass@myproxy:8080', ignoreProxyCertificate: true, }).then((anonymizedURL) => { console.log(`Anonymized URL: ${anonymizedURL}`); }); ``` Create tunnel: ``` createTunnel( 'https://user:pass@myproxy:8080', targetHost, { ignoreProxyCertificate: true } ).then((url) => { console.log('Tunnel endpoint:', url); }); ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.