Comparison

core/s2smanager.lua @ 1308:7b20a3d87244

s2smanager: Use a UUID as the dialback secret
author Waqas Hussain <waqas20@gmail.com>
date Thu, 04 Jun 2009 21:12:36 +0500
parent 1204:dea89234e545
child 1345:35b5686d73ea
comparison
equal deleted inserted replaced
1307:c9c58aa990bb 1308:7b20a3d87244
33 33
34 local log = logger_init("s2smanager"); 34 local log = logger_init("s2smanager");
35 35
36 local sha256_hash = require "util.hashes".sha256; 36 local sha256_hash = require "util.hashes".sha256;
37 37
38 local dialback_secret = sha256_hash(tostring{} .. math.random() .. socket.gettime(), true); 38 local dialback_secret = uuid_gen();
39 39
40 local adns = require "net.adns"; 40 local adns = require "net.adns";
41 41
42 local dns_timeout = config.get("*", "core", "dns_timeout") or 60; 42 local dns_timeout = config.get("*", "core", "dns_timeout") or 60;
43 43