Software /
code /
prosody
Comparison
core/s2smanager.lua @ 1976:5f3eaab987c3
s2smanager: Add incoming_s2s to the prosody object
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 17 Oct 2009 15:25:30 +0100 |
parent | 1962:3e7231c6d6a9 |
child | 2019:c712ea57b877 |
comparison
equal
deleted
inserted
replaced
1975:a9998fac292c | 1976:5f3eaab987c3 |
---|---|
43 local connect_timeout = config.get("*", "core", "s2s_timeout") or 60; | 43 local connect_timeout = config.get("*", "core", "s2s_timeout") or 60; |
44 local dns_timeout = config.get("*", "core", "dns_timeout") or 60; | 44 local dns_timeout = config.get("*", "core", "dns_timeout") or 60; |
45 local max_dns_depth = config.get("*", "core", "dns_max_depth") or 3; | 45 local max_dns_depth = config.get("*", "core", "dns_max_depth") or 3; |
46 | 46 |
47 incoming_s2s = {}; | 47 incoming_s2s = {}; |
48 _G.prosody.incoming_s2s = incoming_s2s; | |
48 local incoming_s2s = incoming_s2s; | 49 local incoming_s2s = incoming_s2s; |
49 | 50 |
50 module "s2smanager" | 51 module "s2smanager" |
51 | 52 |
52 local function compare_srv_priorities(a,b) return a.priority < b.priority or a.weight < b.weight; end | 53 local function compare_srv_priorities(a,b) return a.priority < b.priority or a.weight < b.weight; end |