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

Fix processing of proxybypass variables from environment #286

Merged

Conversation

EzzhevNikita
Copy link
Contributor

This PR should address the issue with the processing of proxy bypass variables. Current logic incorrectly processes any host that is passed to NO_PROXY env variable in the format: .somehost.net. Such hosts will be wrongly interpreted because they contain points in hosts. Point is a special symbol for regex, so it should be escaped by backslash.

@EzzhevNikita EzzhevNikita requested a review from a team August 3, 2021 06:36
lib/Util.ts Outdated Show resolved Hide resolved
lib/Util.ts Outdated Show resolved Hide resolved
lib/Util.ts Show resolved Hide resolved
@alexander-smolyakov alexander-smolyakov requested a review from a team August 3, 2021 07:20
EzzhevNikita and others added 7 commits August 3, 2021 13:40
Co-authored-by: Alexander Smolyakov <v-alsmo@microsoft.com>
Co-authored-by: Alexander Smolyakov <v-alsmo@microsoft.com>
Copy link

@alexander-smolyakov alexander-smolyakov left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@alexander-smolyakov alexander-smolyakov requested a review from a team August 4, 2021 07:11
lib/Util.ts Outdated Show resolved Hide resolved
@EzzhevNikita EzzhevNikita force-pushed the users/EzzhevNikita/fix-processing-of-proxybypass-variables branch from 08acc77 to fee8092 Compare August 10, 2021 06:05
Copy link

@alexander-smolyakov alexander-smolyakov left a comment

Choose a reason for hiding this comment

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

LGTM and please take a look at the comment

lib/Util.ts Outdated Show resolved Hide resolved
@alexander-smolyakov alexander-smolyakov requested a review from a team August 10, 2021 06:22
lib/Util.ts Outdated Show resolved Hide resolved
@EzzhevNikita EzzhevNikita merged commit 935b546 into master Aug 12, 2021
@EzzhevNikita EzzhevNikita deleted the users/EzzhevNikita/fix-processing-of-proxybypass-variables branch August 12, 2021 05:27
EzzhevNikita added a commit that referenced this pull request Aug 12, 2021
…-processing-of-proxybypass-variables"

This reverts commit 935b546, reversing
changes made to 9397d2e.
EzzhevNikita added a commit that referenced this pull request Aug 12, 2021
…-processing-of-proxybypass-variables" (#292)

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

Successfully merging this pull request may close these issues.

3 participants