restore smpp node server field to config.

to close #613
This commit is contained in:
Dave Conway-Jones
2019-12-26 16:25:11 +00:00
parent dda39a7867
commit c5fed3fc4e
3 changed files with 15 additions and 15 deletions

View File

@@ -6,8 +6,8 @@ module.exports = function(RED) {
function XMPPServerNode(n) {
RED.nodes.createNode(this,n);
// this.server = n.server;
// this.port = n.port;
this.server = n.server;
this.port = n.port;
this.nickname = n.nickname;
this.username = n.user;
var credentials = this.credentials;
@@ -24,8 +24,8 @@ module.exports = function(RED) {
that.client.connect({
jid : that.username,
password : that.password,
// host : node.host,
//port : node.port,
host : that.server,
port : that.port,
//skipPresence : true,
reconnect : true,
preferred : "PLAIN"