Software /
code /
prosody
Comparison
plugins/mod_websocket.lua @ 8145:4d0f5ea19851
mod_websocket: Convert set to string (syslog sink needs a better fix)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 16 May 2017 17:52:29 +0200 |
parent | 8052:f83a2d4826fb |
child | 8595:d3bbff01df9d |
child | 8789:4ae8dd415e94 |
comparison
equal
deleted
inserted
replaced
8144:8e9a36d0c7d1 | 8145:4d0f5ea19851 |
---|---|
332 local local_cross_domain = module:get_option_set("cross_domain_websocket", { this_origin }); | 332 local local_cross_domain = module:get_option_set("cross_domain_websocket", { this_origin }); |
333 -- Don't add / remove something added by another host | 333 -- Don't add / remove something added by another host |
334 -- This might be weird with random load order | 334 -- This might be weird with random load order |
335 local_cross_domain:exclude(cross_domain); | 335 local_cross_domain:exclude(cross_domain); |
336 cross_domain:include(local_cross_domain); | 336 cross_domain:include(local_cross_domain); |
337 module:log("debug", "cross_domain = %s", cross_domain); | 337 module:log("debug", "cross_domain = %s", tostring(cross_domain)); |
338 function module.unload() | 338 function module.unload() |
339 cross_domain:exclude(local_cross_domain); | 339 cross_domain:exclude(local_cross_domain); |
340 end | 340 end |
341 end | 341 end |
342 end | 342 end |