tlsd 2.6.3 → 2.6.5
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/tlsd.js +5 -4
package/package.json
CHANGED
package/tlsd.js
CHANGED
|
@@ -43,6 +43,7 @@ const next_seq = function() {
|
|
|
43
43
|
// Tries to load the rpc handler module from root and if successful, passes the msg to it
|
|
44
44
|
const rpc_handler = function( root, msg, xport, _okay, _fail ) {
|
|
45
45
|
|
|
46
|
+
V( "RPC " + o2j( msg ).abbr( 70 ) );
|
|
46
47
|
D( "----------->>> "+xport+" "+o2j( msg, null, 2 ) );
|
|
47
48
|
|
|
48
49
|
const okay = data => {
|
|
@@ -65,11 +66,11 @@ const rpc_handler = function( root, msg, xport, _okay, _fail ) {
|
|
|
65
66
|
try {
|
|
66
67
|
mod( msg, okay, ouch );
|
|
67
68
|
} catch( err ) {
|
|
68
|
-
E( err );
|
|
69
|
+
E( (err instanceof Error ) ? err.stack : err );
|
|
69
70
|
ouch( "RPC handler exception" );
|
|
70
71
|
}
|
|
71
72
|
} catch( err ) {
|
|
72
|
-
|
|
73
|
+
E( (err instanceof Error ) ? err.stack : err );
|
|
73
74
|
ouch( "Error loading RPC handler" );
|
|
74
75
|
}
|
|
75
76
|
};
|
|
@@ -290,7 +291,6 @@ const ws_attach = function( httpServer, msg_handler ) {
|
|
|
290
291
|
|
|
291
292
|
// -----------------------
|
|
292
293
|
|
|
293
|
-
|
|
294
294
|
const argv = process.argv;
|
|
295
295
|
|
|
296
296
|
if( argv.length == 2 ) {
|
|
@@ -309,7 +309,8 @@ if( argv.length == 2 ) {
|
|
|
309
309
|
packageRoot: __dirname,
|
|
310
310
|
maintainerEmail: MAINTAINER_EMAIL,
|
|
311
311
|
configDir: "./greenlock.d",
|
|
312
|
-
cluster:
|
|
312
|
+
cluster: false,
|
|
313
|
+
//notify
|
|
313
314
|
} ).ready( glx => {
|
|
314
315
|
|
|
315
316
|
var httpd = glx.httpsServer();
|