Diff

core/s2smanager.lua @ 2231:288832cdec52

s2smanager: Allow configuration of the dialback_secret in the config
author Matthew Wild <mwild1@gmail.com>
date Thu, 26 Nov 2009 17:17:54 +0000
parent 2166:fb01f0906564
child 2368:4726cd9a6318
line wrap: on
line diff
--- 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;