mirror of
https://github.com/certd/certd.git
synced 2026-04-28 07:57:25 +08:00
fix: 修复在没有勾选使用代理的情况下,仍然会使用代理的bug
This commit is contained in:
@@ -55,7 +55,7 @@ class HttpClient {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
async request(url, method, opts = {}) {
|
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
|
// eslint-disable-next-line no-restricted-syntax
|
||||||
for (const key in this.urlMapping.mappings) {
|
for (const key in this.urlMapping.mappings) {
|
||||||
if (url.includes(key)) {
|
if (url.includes(key)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user