Skip to content

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

* @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

:)

fullstackinfo pushed a commit to fullstackinfo/azure-pipelines-task-lib that referenced this pull request Aug 17, 2024
…crosoft#324)

* add optional parameter to getHttpProxyConfig allow bypass filter.

* fix
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.

6 participants