Skip to content
Browse files

s2sPort is now an option

  • Loading branch information...
1 parent f9e3a5c commit a0e53e10effaddf227d876a31e86082549335939 @julien51 julien51 committed Dec 23, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 modules/s2s.js
  2. +2 −2 test/functional/s2s-chat.js
View
2 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);
View
4 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();
});
});

0 comments on commit a0e53e1

Please sign in to comment.
Something went wrong with that request. Please try again.