aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-02-03 21:41:45 +0100
committerKim Alvefur <zash@zash.se>2021-02-03 21:41:45 +0100
commit2845337d4b74d53fc4b2442c305ffe869695eae3 (patch)
treed4d90b5439a3d7b09bcdf0668cf5ba0cfab322d9 /plugins
parent41e4648d277d560ffb6facd94e9d933a62200f12 (diff)
downloadprosody-2845337d4b74d53fc4b2442c305ffe869695eae3.tar.gz
prosody-2845337d4b74d53fc4b2442c305ffe869695eae3.zip
mod_c2s: Reflect stream 'from' attribute back if set (fix #1625)
Clients should *not* be setting this before TLS anyways.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_c2s.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua
index ef4bd4b3..a1820029 100644
--- a/plugins/mod_c2s.lua
+++ b/plugins/mod_c2s.lua
@@ -90,7 +90,7 @@ function stream_callbacks._streamopened(session, attr)
return;
end
- session:open_stream();
+ session:open_stream(host, attr.from);
(session.log or log)("debug", "Sent reply <stream:stream> to client");
session.notopen = nil;