[Pkg-javascript-commits] [ltx] 89/469: TODO: improve SRV lookups

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:01:07 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 e6404d5a8b63b3c32c88e43d31f3b9f6978180ca
Author: Astro <astro at spaceboyz.net>
Date:   Mon Sep 6 02:53:08 2010 +0200

    TODO: improve SRV lookups
---
 lib/xmpp/client.js | 1 +
 lib/xmpp/server.js | 1 +
 2 files changed, 2 insertions(+)

diff --git a/lib/xmpp/client.js b/lib/xmpp/client.js
index 525eb25..50394f5 100644
--- a/lib/xmpp/client.js
+++ b/lib/xmpp/client.js
@@ -47,6 +47,7 @@ function Client(params) {
 	this.connect(params.port || 5222, params.host);
     } else {
 	var self = this;
+	// TODO: improve SRV lookups
 	dns.resolveSrv('_xmpp-client._tcp.' + this.jid.domain,
 		       function(err, addrs) {
 			   if (err) {
diff --git a/lib/xmpp/server.js b/lib/xmpp/server.js
index ee2cd59..14c1116 100644
--- a/lib/xmpp/server.js
+++ b/lib/xmpp/server.js
@@ -100,6 +100,7 @@ exports.makeIncomingServer = function(self) {
 };
 
 function dnsLookup(domain, cb) {
+    // TODO: improve SRV lookups
     dns.resolveSrv('_xmpp-server._tcp.' + domain, function(error, data) {
 	if (data[0])
 	    cb(data[0].name, data[0].port);

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