fix and test

This commit is contained in:
Dave Conway-Jones
2021-12-26 16:12:47 +00:00
parent e5f1029d0c
commit 02bd292b8c
2 changed files with 26 additions and 4 deletions

View File

@@ -517,6 +517,7 @@ module.exports = function(RED) {
this.port = Number(n.port);
this.out = n.out;
this.ret = n.ret || "buffer";
this.newline = n.newline;
this.splitc = n.splitc;
if (n.tls) {
var tlsNode = RED.nodes.getNode(n.tls);
@@ -802,7 +803,7 @@ module.exports = function(RED) {
if (clients[connection_id].client) {
clients[connection_id].connecting = true;
var connOpts = {host: host, port: port};
var connOpts = {host:host, port:port};
if (n.tls) {
connOpts = tlsNode.addTLSOptions(connOpts);
}