s2smanager: Allow configuration of the dialback_secret in the config

Thu, 26 Nov 2009 17:17:54 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 26 Nov 2009 17:17:54 +0000
changeset 2231
288832cdec52
parent 2230
aa830ab55bbc
child 2232
aa8db84ae69d
child 2241
ac3bd7c42c8b

s2smanager: Allow configuration of the dialback_secret in the config

core/s2smanager.lua file | annotate | diff | comparison | revisions
--- a/core/s2smanager.lua	Thu Nov 26 13:06:52 2009 +0500
+++ b/core/s2smanager.lua	Thu Nov 26 17:17:54 2009 +0000
@@ -36,13 +36,12 @@
 
 local sha256_hash = require "util.hashes".sha256;
 
-local dialback_secret = uuid_gen();
-
 local adns, dns = require "net.adns", require "net.dns";
 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;

mercurial