bugfix(#1267): use baseUrl for no-proxy determination
This commit is contained in:
parent
671dc9c9e0
commit
c571cf6042
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user