From a0a31e3bf7a5d383029d27f5828b511ab83a9726 Mon Sep 17 00:00:00 2001 From: SebClem Date: Wed, 14 Oct 2020 18:34:11 +0200 Subject: [PATCH] :ambulance: Fix self signed certificate #27 --- .../rootfs/opt/nextcloud_backup/tools/webdavTools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/webdavTools.js b/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/webdavTools.js index 66c55a2..ce838b5 100644 --- a/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/webdavTools.js +++ b/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/webdavTools.js @@ -31,7 +31,7 @@ class WebdavTools { this.password = password; let agent_option = ssl === "true" ? { rejectUnauthorized: accept_selfsigned_cert === "false" } : {} try { - this.client = createClient(this.baseUrl, { username: username, password: password }, new https.Agent(agent_option)); + this.client = createClient(this.baseUrl, { username: username, password: password, httpsAgent: new https.Agent(agent_option) }) ; this.client.getDirectoryContents("/").then(() => { if (status.error_code == 3) {