Mercurial > prosody-hg
diff plugins/mod_bosh.lua @ 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 | 048a83433295 |
| children | 041ddc670934 |
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,
