From 4e4cdb20cd1c2ef3314183ffe83cded4dba10cdf Mon Sep 17 00:00:00 2001 From: Srinivasan Sekar Date: Wed, 12 Jun 2024 20:05:53 +0800 Subject: [PATCH] Disable client Verification (#1175) --- package-lock.json | 4 ++-- package.json | 2 +- src/plugin.ts | 11 +++++++++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index a14106ac1..34d7eddae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "appium-device-farm", - "version": "8.4.7-rc.40", + "version": "8.4.7-rc.41", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "appium-device-farm", - "version": "8.4.7-rc.40", + "version": "8.4.7-rc.41", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index eea7cd3b0..b6ff3b028 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "appium-device-farm", - "version": "8.4.7-rc.40", + "version": "8.4.7-rc.41", "description": "An appium 2.0 plugin that manages and create driver session on available devices", "main": "./lib/src/main.js", "scripts": { diff --git a/src/plugin.ts b/src/plugin.ts index a0f27cc53..7379ee8bb 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -477,8 +477,15 @@ class DevicePlugin extends BasePlugin { method: 'post', url: remoteUrl, timeout: this.pluginArgs.remoteConnectionTimeout, - httpAgent: new http.Agent({ keepAlive: true, keepAliveMsecs: 60000 }), - httpsAgent: new https.Agent({ keepAlive: true, keepAliveMsecs: 60000 }), + httpAgent: new http.Agent({ + keepAlive: true, + keepAliveMsecs: 60000, + }), + httpsAgent: new https.Agent({ + rejectUnauthorized: false, + keepAlive: true, + keepAliveMsecs: 60000, + }), headers: { 'Content-Type': 'application/json', },