mod_http_prebind/mod_http_prebind.lua
changeset 4234 495a23d61418
parent 4233 3943032533a7
--- a/mod_http_prebind/mod_http_prebind.lua	Sun Oct 25 17:58:02 2020 +0100
+++ b/mod_http_prebind/mod_http_prebind.lua	Sun Oct 25 18:01:25 2020 +0100
@@ -132,7 +132,7 @@
 module:provides("http", {
 	route = {
 		["GET"] = function (event)
-			return connect_to_bosh("http://[::1]:5280/http-bind", "anon.localhost")
+			return connect_to_bosh("http://[::1]:5280/http-bind", module.host)
 				:next(authenticate)
 				:next(restart_stream)
 				:next(bind);