diff options
author | Kim Alvefur <zash@zash.se> | 2021-02-03 21:41:45 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-02-03 21:41:45 +0100 |
commit | 8b35cb5c87b0836beb2707cf0e6868b266d2d6bd (patch) | |
tree | d4d90b5439a3d7b09bcdf0668cf5ba0cfab322d9 /plugins/mod_c2s.lua | |
parent | 1f7686a6bd823ca3af97f08d9d360fdb4dbbb97f (diff) | |
download | prosody-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.
Diffstat (limited to 'plugins/mod_c2s.lua')
-rw-r--r-- | plugins/mod_c2s.lua | 2 |
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; |