From 441b66f80923d1f574a74582f1fb9306b99fc12a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 16 Nov 2016 20:22:17 +0100 Subject: Server: forbid to make friends with a non https server --- server/initializers/constants.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/initializers') diff --git a/server/initializers/constants.js b/server/initializers/constants.js index 40e1c5381..3ddf87454 100644 --- a/server/initializers/constants.js +++ b/server/initializers/constants.js @@ -152,7 +152,7 @@ const REQUEST_ENDPOINTS = { const REMOTE_SCHEME = { HTTP: 'https', - WS: 'WS' + WS: 'wss' } // Password encryption @@ -220,6 +220,7 @@ module.exports = { // --------------------------------------------------------------------------- +// This method exists in utils module but we want to let the constants module independent function isTestInstance () { return (process.env.NODE_ENV === 'test') } -- cgit v1.2.3