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

add optional parameter to getHttpProxyConfig allow bypass filter. #324

Merged
merged 2 commits into from Mar 29, 2018

Conversation

TingluoHuang
Copy link
Contributor

@TingluoHuang TingluoHuang commented Mar 6, 2018

tested.

node/task.ts Outdated
};
let bypass: boolean = false;
if (requestUrl) {
this._httpProxyBypassHosts.forEach(bypassHost => {
Copy link
Member

Choose a reason for hiding this comment

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

Didn't see this in the code? How is this different than proxyBypassHosts?

Copy link
Contributor

Choose a reason for hiding this comment

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

Does that include wildcards, ip ranges etc as well?

Copy link
Contributor

Choose a reason for hiding this comment

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

it's a list of regex patterns

@@ -1563,19 +1563,33 @@ export interface ProxyConfiguration {
*
* @return ProxyConfiguration
*/
export function getHttpProxyConfiguration(): ProxyConfiguration {
export function getHttpProxyConfiguration(requestUrl?: string): ProxyConfiguration {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be URL?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i might just leave it as string since the bypass list is always an array of strings. :D

Copy link
Contributor

Choose a reason for hiding this comment

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

OK, You could do requestUrl.host if it was a URL() though.

@keithrob
Copy link
Contributor

@TingluoHuang,
What are the merge plans for this PR?

@bryanmacfarlane bryanmacfarlane merged commit 6c3c61d into master Mar 29, 2018
@bryanmacfarlane
Copy link
Contributor

Plan is to click merge which I just did.

@TingluoHuang TingluoHuang deleted the users/tihuang/filterbypass branch March 29, 2018 19:03
@keithrob
Copy link
Contributor

@bryanmacfarlane,
Good plan with solid execution. +1

@bryanmacfarlane
Copy link
Contributor

:)

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.

None yet

5 participants