Skip to content

Commit

Permalink
bugfix(peter-evans#1267): use baseUrl for no-proxy determination
Browse files Browse the repository at this point in the history
  • Loading branch information
codefish1 committed Oct 14, 2022
1 parent 671dc9c commit c571cf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/octokit-client.ts
Expand Up @@ -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
Expand Down

0 comments on commit c571cf6

Please sign in to comment.