aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bosh.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-05-30 10:58:19 +0200
committerKim Alvefur <zash@zash.se>2018-05-30 10:58:19 +0200
commit4aa93b912ff74a2fd9e34001370f433da928ee08 (patch)
tree8c12efff3692ff681b798d868090e5adcc229833 /plugins/mod_bosh.lua
parent6a1f58031623c6e032a04adbaf95ffcf95b98156 (diff)
downloadprosody-4aa93b912ff74a2fd9e34001370f433da928ee08.tar.gz
prosody-4aa93b912ff74a2fd9e34001370f433da928ee08.zip
mod_bosh: Store the normalized hostname on session (fixes #1151)
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r--plugins/mod_bosh.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 9ef4a41e..8cda4a23 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -281,7 +281,7 @@ function stream_callbacks.streamopened(context, attr)
-- 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,