aboutsummaryrefslogtreecommitdiffstats
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
commit8b35cb5c87b0836beb2707cf0e6868b266d2d6bd (patch)
treed4d90b5439a3d7b09bcdf0668cf5ba0cfab322d9
parent1f7686a6bd823ca3af97f08d9d360fdb4dbbb97f (diff)
downloadprosody-8b35cb5c87b0836beb2707cf0e6868b266d2d6bd.tar.gz
prosody-8b35cb5c87b0836beb2707cf0e6868b266d2d6bd.zip
mod_c2s: Reflect stream 'from' attribute back if set (fix #1625)
Clients should *not* be setting this before TLS anyways.
-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;