aboutsummaryrefslogtreecommitdiffstats
path: root/core/s2smanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-01-03 18:55:42 +0000
committerMatthew Wild <mwild1@gmail.com>2010-01-03 18:55:42 +0000
commit4b75f2857c55522da732ee0c62303c592e591b72 (patch)
treefe4928a426745f670469a4f4b8676705c0841bfb /core/s2smanager.lua
parentcddb59f5420bf9b9a7db1b62749eed71606a0476 (diff)
downloadprosody-4b75f2857c55522da732ee0c62303c592e591b72.tar.gz
prosody-4b75f2857c55522da732ee0c62303c592e591b72.zip
s2smanager, hostmanager: Make dialback secrets per-host
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r--core/s2smanager.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index 9eb3bb24..37957acf 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -41,7 +41,6 @@ local config = require "core.configmanager";
local connect_timeout = config.get("*", "core", "s2s_timeout") or 60;
local dns_timeout = config.get("*", "core", "dns_timeout") or 60;
local max_dns_depth = config.get("*", "core", "dns_max_depth") or 3;
-local dialback_secret = config.get("*", "core", "dialback_secret") or uuid_gen();
incoming_s2s = {};
_G.prosody.incoming_s2s = incoming_s2s;
@@ -431,7 +430,7 @@ function initiate_dialback(session)
end
function generate_dialback(id, to, from)
- return sha256_hash(id..to..from..dialback_secret, true);
+ return sha256_hash(id..to..from..hosts[from].dialback_secret, true);
end
function verify_dialback(id, to, from, key)