mod_c2s: Reflect stream 'from' attribute back if set (fix #1625)
authorKim Alvefur <zash@zash.se>
Wed, 03 Feb 2021 21:41:45 +0100
changeset 11363 db146bf7b120
parent 11362 ebbf8dca33d2
child 11364 f36a2e54ac81
mod_c2s: Reflect stream 'from' attribute back if set (fix #1625) Clients should *not* be setting this before TLS anyways.
plugins/mod_c2s.lua
--- 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;