Browse files

not using binAddress by default as the default is ::

  • Loading branch information...
1 parent 8be3d75 commit d008d542204c424e888b21f37dc86ed6c7016b74 @julien51 julien51 committed Mar 16, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 modules/s2s.js
  2. +1 −1 test/functional/connect-client.js
  3. +1 −1 test/functional/registration.js
  4. +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(config.s2sPort, 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
2 test/functional/connect-client.js
@@ -18,7 +18,7 @@ dns.resolveSrv = function(domain, callback) {
describe('Connect client', function(){
before(function(proceed) {
- server.run({port: 5222, domain: 'bernard.local', bindAddress: '0.0.0.0'}, function() {
+ server.run({port: 5222, domain: 'bernard.local'}, function() {
proceed();
});
});
View
2 test/functional/registration.js
@@ -11,7 +11,7 @@ var User = require('../../lib/users.js').User;
describe('Register a new jid', function(){
before(function(proceed) {
- server.run({port: 5222, domain: 'localhost', bindAddress: '0.0.0.0'}, function() {
+ server.run({port: 5222, domain: 'localhost'}, function() {
proceed();
});
});
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', s2sPort: 52690}, function() {
- server.run({port: 52221, domain: 'bianca.local', bindAddress: '0.0.0.0', s2sPort: 52691}, function() {
+ server.run({port: 52220, domain: 'bernard.local', s2sPort: 52690}, function() {
+ server.run({port: 52221, domain: 'bianca.local', s2sPort: 52691}, function() {
proceed();
});
});

0 comments on commit d008d54

Please sign in to comment.