summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-03-27 10:38:00 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-03-27 10:38:00 +0300
commitf4675165ea4d7cf72b0905b6ef36385708b20220 (patch)
treefce34af2cd99bb2eb7490e0ac8a524b3ab2e0287 /include
parentPin invites to the top of the room list (diff)
downloadnheko-f4675165ea4d7cf72b0905b6ef36385708b20220.tar.xz
Add environment variable to allow insecure connections (self-signed certs)
NHEKO_ALLOW_INSECURE_CONNECTIONS=1 ./nheko

fixes #260
Diffstat (limited to 'include')
-rw-r--r--include/MatrixClient.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/MatrixClient.h b/include/MatrixClient.h

index 0e15dc2d..62ac2088 100644 --- a/include/MatrixClient.h +++ b/include/MatrixClient.h
@@ -102,7 +102,7 @@ public slots: void setServer(const QString &server) { - server_ = QUrl(QString("https://%1").arg(server)); + server_ = QUrl(QString("%1://%2").arg(serverProtocol_).arg(server)); }; void setAccessToken(const QString &token) { token_ = token; }; void setNextBatchToken(const QString &next_batch) { next_batch_ = next_batch; }; @@ -193,9 +193,10 @@ private: // Increasing transaction ID. int txn_id_; - // Token to be used for the next sync. + //! Token to be used for the next sync. QString next_batch_; - - // filter to be send as filter-param for (initial) /sync requests + //! http or https (default). + QString serverProtocol_; + //! Filter to be send as filter-param for (initial) /sync requests. QString filter_; };