Disable rejectUnauthorized in dev mode so vfs works in it

pull/312/head
Tim Robinson 2016-05-30 19:25:12 +00:00
rodzic ee07f1b0c7
commit 88fe82a5b9
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -113,7 +113,8 @@ module.exports = function(options) {
debug: debug,
installPath: options.installPath,
dashboardUrl: options.dashboardUrl,
accountUrl: options.accountUrl
accountUrl: options.accountUrl,
rejectUnauthorized: options.rejectUnauthorized
},
{
packagePath: "plugins/c9.vfs.client/endpoint",

Wyświetl plik

@ -242,7 +242,8 @@ define(function(require, exports, module) {
port: parsedSocket.port
|| parsedSocket.protocol == "https:" ? "443" : null,
secure: parsedSocket.protocol
? parsedSocket.protocol == "https:" : true
? parsedSocket.protocol == "https:" : true,
rejectUnauthorized: options.rejectUnauthorized
};
callback();
});