From a0e53e10effaddf227d876a31e86082549335939 Mon Sep 17 00:00:00 2001 From: julien Date: Fri, 23 Dec 2011 17:51:51 +0100 Subject: [PATCH] s2sPort is now an option --- modules/s2s.js | 2 +- test/functional/s2s-chat.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/s2s.js b/modules/s2s.js index 70fe151..e819d57 100644 --- a/modules/s2s.js +++ b/modules/s2s.js @@ -9,7 +9,7 @@ function S2S() { exports.configure = function(server, config) { if(config) { - var s2s = new xmpp.Router(5269, server.options.bindAddress); // We only use 5269 has the default S2S port. + var s2s = new xmpp.Router(config.s2sPort, server.options.bindAddress); // We only use 5269 has the default S2S port. // Load TLS key material if (config.tls) { s2s.loadCredentials(config.domain, config.tls.keyPath, config.tls.certPath); diff --git a/test/functional/s2s-chat.js b/test/functional/s2s-chat.js index 2d9f1af..d9ec360 100644 --- a/test/functional/s2s-chat.js +++ b/test/functional/s2s-chat.js @@ -30,8 +30,8 @@ describe('A small chat accross 2 servers', function(){ var bernard, bianca = null; before(function(proceed) { - server.run({port: 52220, domain: 'bernard.local', bindAddress: '0.0.0.0', s2s: {port: 52690}}, function() { - server.run({port: 52221, domain: 'bianca.local', bindAddress: '0.0.0.0', s2s: {port: 52691}}, function() { + server.run({port: 52220, domain: 'bernard.local', bindAddress: '0.0.0.0', s2sPort: 52690}, function() { + server.run({port: 52221, domain: 'bianca.local', bindAddress: '0.0.0.0', s2sPort: 52691}, function() { proceed(); }); });