Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
congminh1254 committed Nov 8, 2023
1 parent 7780711 commit 5883e1c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/util/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,7 @@ function updateRequestAgent(
Required<Pick<UserConfigurationOptions, 'proxy'>>
) {
if (params.proxy.url) {
const urlParams = url.parse(params.proxy.url);
let proxyUrl = urlParams.href;
let proxyUrl = params.proxy.url;
if (params.proxy.username && params.proxy.password) {
proxyUrl = proxyUrl.replace('://', `://${params.proxy.username}:`);
}
Expand Down

0 comments on commit 5883e1c

Please sign in to comment.