bugfix(#1267): use baseUrl for no-proxy determination

This commit is contained in:
David Morris 2022-10-14 13:20:52 +01:00 committed by GitHub
parent 671dc9c9e0
commit c571cf6042
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ function autoProxyAgent(octokit: Core) {
const agent = new HttpsProxyAgent(proxy)
octokit.hook.before('request', options => {
if (noProxyArray.includes(options.request.hostname)) {
if (noProxyArray.includes(options.request.hostname) || noProxyArray.includes( new URL(options.baseUrl).host) {
return
}
options.request.agent = agent