add --capath and --cafile including insecure option

This commit is contained in:
John
2022-02-19 12:55:38 +01:00
parent a06a96d1df
commit ab97fc3299
5 changed files with 24 additions and 10 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ MainLoop::MainLoop(const struct options& opt, Device *device, MessageMap* messag
: Thread(), m_device(device), m_reconnectCount(0), m_userList(opt.accessLevel), m_messages(messages),
m_address(opt.address), m_scanConfig(opt.scanConfig), m_initialScan(opt.readOnly ? ESC : opt.initialScan),
m_polling(opt.pollInterval > 0), m_enableHex(opt.enableHex), m_shutdown(false), m_runUpdateCheck(opt.updateCheck),
m_httpClient(nullptr, nullptr) {
m_httpClient(opt.caFile, opt.caPath) {
m_device->setListener(this);
// open Device
result_t result = m_device->open();