Software /
code /
prosody
Diff
plugins/mod_c2s.lua @ 11359:db146bf7b120
mod_c2s: Reflect stream 'from' attribute back if set (fix #1625)
Clients should *not* be setting this before TLS anyways.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 03 Feb 2021 21:41:45 +0100 |
parent | 11120:b2331f3dfeea |
child | 11477:c90ef8745779 |
line wrap: on
line diff
--- a/plugins/mod_c2s.lua Wed Feb 03 16:14:43 2021 +0100 +++ b/plugins/mod_c2s.lua Wed Feb 03 21:41:45 2021 +0100 @@ -90,7 +90,7 @@ 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;