tlsd 2.18.0 → 2.18.1
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 +10 -1
package/package.json
CHANGED
package/tlsd.js
CHANGED
|
@@ -278,7 +278,15 @@ function ws_msg_handler( root, msg, host, connection ) {
|
|
|
278
278
|
const { setCookie, clearCookie } = make_cookie_setters();
|
|
279
279
|
const cookies = connection.cookies || {};
|
|
280
280
|
|
|
281
|
-
rpc_handler( root, msg.msg, {
|
|
281
|
+
rpc_handler( root, msg.msg, {
|
|
282
|
+
transport_type: "WS",
|
|
283
|
+
host,
|
|
284
|
+
connection,
|
|
285
|
+
cookies,
|
|
286
|
+
setCookie,
|
|
287
|
+
clearCookie,
|
|
288
|
+
dev_mode,
|
|
289
|
+
}, data => {
|
|
282
290
|
msg.reply( data );
|
|
283
291
|
}, err => {
|
|
284
292
|
msg.error( err || "Unspecified Error" );
|
|
@@ -496,6 +504,7 @@ function rpc_post( root ) {
|
|
|
496
504
|
cookies,
|
|
497
505
|
setCookie,
|
|
498
506
|
clearCookie,
|
|
507
|
+
dev_mode,
|
|
499
508
|
} , output => {
|
|
500
509
|
res.writeHead( 200, {
|
|
501
510
|
"Content-Type": "application/json",
|