[Pkg-javascript-commits] [ltx] 98/469: server makeOutgoingServer() startStream(): no version='1.0' without TLS credentials

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:01:08 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 2a392d5ab2cb53a1b7e3a0668aead63f95ba626d
Author: Astro <astro at spaceboyz.net>
Date:   Mon Sep 6 22:14:58 2010 +0200

    server makeOutgoingServer() startStream(): no version='1.0' without TLS credentials
---
 lib/xmpp/server.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/xmpp/server.js b/lib/xmpp/server.js
index 1a9f524..fc988a2 100644
--- a/lib/xmpp/server.js
+++ b/lib/xmpp/server.js
@@ -142,6 +142,11 @@ exports.makeOutgoingServer = function(domain) {
     self.startStream = function() {
 	Connection.Connection.prototype.startStream.call(self);
 
+	// No credentials means we cannot <starttls/> on the server
+	// side. Unfortunately this is required for XMPP 1.0.
+	if (!self.credentials)
+	    delete self.xmppVersion;
+
 	var tag = "<stream:stream xmlns='" + self.xmlns +
 	    "' xmlns:stream='" + Connection.NS_STREAM +
 	    "' xmlns:db='" + NS_DIALBACK +

-- 
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