1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-24 23:26:50 +02:00

Android: Fixes #4439: Add option to disable TLS validation and allow self-signed certificates for WebDAV/NextCloud (#4742)

This commit is contained in:
Roman Musin
2021-04-25 09:50:52 +01:00
committed by GitHub
parent 3235f58f5a
commit a4854fcde8
17 changed files with 186 additions and 9 deletions

View File

@ -32,6 +32,7 @@ class SyncTargetWebDAV extends BaseSyncTarget {
baseUrl: () => options.path(),
username: () => options.username(),
password: () => options.password(),
ignoreTlsErrors: () => options.ignoreTlsErrors(),
};
const api = new WebDavApi(apiOptions);
@ -67,6 +68,7 @@ class SyncTargetWebDAV extends BaseSyncTarget {
path: () => Setting.value('sync.6.path'),
username: () => Setting.value('sync.6.username'),
password: () => Setting.value('sync.6.password'),
ignoreTlsErrors: () => Setting.value('net.ignoreTlsErrors'),
});
fileApi.setLogger(this.logger());