mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
bugfix(#1267): use baseUrl for no-proxy determination
This commit is contained in:
parent
671dc9c9e0
commit
c571cf6042
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue