# HG changeset patch # User Matthew Wild # Date 1224856744 -3600 # Node ID f4e9b6ec34b0ae6b84f8a62eb685eb427aca669b # Parent 884c43c7028a3aeee7f813cdb3373721798dc5d4 Hack until we get SRV resolving diff -r 884c43c7028a -r f4e9b6ec34b0 core/s2smanager.lua --- a/core/s2smanager.lua Fri Oct 24 14:47:23 2008 +0100 +++ b/core/s2smanager.lua Fri Oct 24 14:59:04 2008 +0100 @@ -20,6 +20,8 @@ local dialback_secret = "This is very secret!!! Ha!"; +local srvmap = { ["gmail.com"] = "talk.google.com", ["identi.ca"] = "longlance.controlezvous.ca" }; + module "s2smanager" function connect_host(from_host, to_host) @@ -64,6 +66,7 @@ local conn, handler = socket.tcp() --FIXME: Below parameters (ports/ip) are incorrect (use SRV) + to_host = srvmap[to_host] or to_host; conn:connect(to_host, 5269); conn = wraptlsclient(cl, conn, to_host, 5269, 0, 1, hosts[from_host].ssl_ctx ); host_session.conn = conn;