Changeset

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 (2009-11-26)
parents 2230:aa830ab55bbc
children 2232:aa8db84ae69d 2241:ac3bd7c42c8b
files core/s2smanager.lua
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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;