diff --git a/plugins/c9.vfs.client/vfs_client.js b/plugins/c9.vfs.client/vfs_client.js index 266974e7..1ef9289c 100644 --- a/plugins/c9.vfs.client/vfs_client.js +++ b/plugins/c9.vfs.client/vfs_client.js @@ -223,7 +223,8 @@ define(function(require, exports, module) { eioOptions = { path: parsedSocket.path, host: parsedSocket.host, - port: parsedSocket.port || "443", + port: parsedSocket.port + || parsedSocket.protocol == "https:" ? "443" : null, secure: parsedSocket.protocol ? parsedSocket.protocol == "https:" : true };