projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
s2smanager: Remove srv_hosts from session when connected, this fixes attempting to...
[prosody.git]
/
core
/
s2smanager.lua
diff --git
a/core/s2smanager.lua
b/core/s2smanager.lua
index 386e0794e360562dfa3bf3a753d5a76f4597d633..879084d86554db54dd19c5dbcac55ff1d59cab83 100644
(file)
--- a/
core/s2smanager.lua
+++ b/
core/s2smanager.lua
@@
-35,7
+35,7
@@
local log = logger_init("s2smanager");
local sha256_hash = require "util.hashes".sha256;
local sha256_hash = require "util.hashes".sha256;
-local dialback_secret =
sha256_hash(tostring{} .. math.random() .. socket.gettime(), true
);
+local dialback_secret =
uuid_gen(
);
local adns = require "net.adns";
local adns = require "net.adns";
@@
-379,6
+379,8
@@
function mark_connected(session)
end
session.sendq = nil;
end
end
session.sendq = nil;
end
+
+ session.srv_hosts = nil;
end
end
end
end