mirror of https://github.com/certd/certd
fix: 修复在没有勾选使用代理的情况下,仍然会使用代理的bug
parent
4b9d1eb4b5
commit
0f6679425f
|
@ -55,7 +55,7 @@ class HttpClient {
|
|||
*/
|
||||
|
||||
async request(url, method, opts = {}) {
|
||||
if (this.urlMapping && this.urlMapping.mappings) {
|
||||
if (this.urlMapping && this.urlMapping.enabled && this.urlMapping.mappings) {
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
for (const key in this.urlMapping.mappings) {
|
||||
if (url.includes(key)) {
|
||||
|
|
Loading…
Reference in New Issue