Changeset

8840:4a5ff09887a4

mod_bosh: Store the normalized hostname on session (fixes #1151)
author Kim Alvefur <zash@zash.se>
date Wed, 30 May 2018 10:58:19 +0200
parents 8839:dcd53a565c01
children 8841:bc8558bbc797
files plugins/mod_bosh.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_bosh.lua	Tue May 29 22:33:22 2018 +0200
+++ b/plugins/mod_bosh.lua	Wed May 30 10:58:19 2018 +0200
@@ -281,7 +281,7 @@
 		-- New session
 		sid = new_uuid();
 		local session = {
-			type = "c2s_unauthed", conn = request.conn, sid = sid, rid = rid, host = attr.to,
+			type = "c2s_unauthed", conn = request.conn, sid = sid, rid = rid, host = to_host,
 			bosh_version = attr.ver, bosh_wait = wait, streamid = sid,
 			bosh_max_inactive = bosh_max_inactivity,
 			requests = { }, send_buffer = {}, reset_stream = bosh_reset_stream,