xshell 1.0.62 → 1.0.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server.js +2 -2
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -39,7 +39,7 @@ export class Server {
|
|
|
39
39
|
colors = util.inspect.defaultOptions.colors;
|
|
40
40
|
/** 启用后增加 stdio 订阅相关的 remote.funcs */
|
|
41
41
|
stdio_subscribable;
|
|
42
|
-
stdio_subscribers;
|
|
42
|
+
stdio_subscribers = [];
|
|
43
43
|
/** 原始 process.stdout.write 函数 bind 后的备份 */
|
|
44
44
|
stdout_write;
|
|
45
45
|
stderr_write;
|
|
@@ -105,7 +105,7 @@ export class Server {
|
|
|
105
105
|
].map(async (fname) => fread(`${fpd_certs}${fname}`, { print: false })));
|
|
106
106
|
return [domain, { key, cert }];
|
|
107
107
|
})));
|
|
108
|
-
const default_ctx =
|
|
108
|
+
const default_ctx = lazy_secure_ctxs[this.default_hostnames.find(hostname => hostname in lazy_secure_ctxs)];
|
|
109
109
|
assert(default_ctx);
|
|
110
110
|
this.http2_server = http2_create_server({
|
|
111
111
|
SNICallback(servername, callback) {
|