Skip to content

Commit

Permalink
s2sPort is now an option
Browse files Browse the repository at this point in the history
  • Loading branch information
julien51 committed Dec 23, 2011
1 parent f9e3a5c commit a0e53e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/s2s.js
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions test/functional/s2s-chat.js
Expand Up @@ -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();
});
});
Expand Down

0 comments on commit a0e53e1

Please sign in to comment.