[Pkg-javascript-commits] [ltx] 138/469: router: bind to :: per default

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:01:16 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository ltx.

commit 3695f3be6d61f97ad7e6569d4ebaf82e1920b5b1
Author: Astro <astro at spaceboyz.net>
Date:   Fri Sep 10 03:24:31 2010 +0200

    router: bind to :: per default
    
    Contrary to 0.0.0.0 this is compatible to the other address family. Pay
    attention to net.ipv6.bindv6only=0.
---
 lib/xmpp/router.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/xmpp/router.js b/lib/xmpp/router.js
index 64ff431..c0d38e6 100644
--- a/lib/xmpp/router.js
+++ b/lib/xmpp/router.js
@@ -370,13 +370,13 @@ DomainContext.prototype.end = function() {
  * TODO:
  * * SASL EXTERNAL
  */
-function Router(s2sPort) {
+function Router(s2sPort, bindAddress) {
     var self = this;
     this.ctxs = {};
 
     net.createServer(function(inStream) {
         self.acceptConnection(inStream);
-    }).listen(s2sPort || 5269);
+    }).listen(s2sPort || 5269, bindAddress || '::');
 }
 exports.Router = Router;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git



More information about the Pkg-javascript-commits mailing list