Changeset

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
parents 11358:ebbf8dca33d2
children 11360:f36a2e54ac81
files plugins/mod_c2s.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;