From ab4d5ac76d98d7e91f4fc5d96c6dc2fbeb8ed6c1 Mon Sep 17 00:00:00 2001 From: turt2live Date: Fri, 8 Sep 2017 20:31:56 -0600 Subject: [PATCH] Always use https when contacting homeserver Fixes #106 --- src/matrix/MatrixLiteClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/MatrixLiteClient.js b/src/matrix/MatrixLiteClient.js index 8e6c4cb..c6a633a 100644 --- a/src/matrix/MatrixLiteClient.js +++ b/src/matrix/MatrixLiteClient.js @@ -37,7 +37,7 @@ class MatrixLiteClient { log.warn("MatrixLiteClient", "Failed to lookup SRV for " + this._openId.matrix_server_name + " - assuming none available."); log.warn("MatrixLiteClient", err); }).then(() => { - var url = "http://" + this._openId.matrix_server_name + endpoint; + var url = "https://" + this._openId.matrix_server_name + endpoint; log.verbose("MatrixLiteClient", "Performing request: " + url);