comparison mod_http_prebind/mod_http_prebind.lua @ 4230:495a23d61418

mod_http_prebind: Stop hardcoding test domain
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 25 Oct 2020 18:01:25 +0100
parents 3943032533a7
children
comparison
equal deleted inserted replaced
4229:3943032533a7 4230:495a23d61418
130 end; 130 end;
131 131
132 module:provides("http", { 132 module:provides("http", {
133 route = { 133 route = {
134 ["GET"] = function (event) 134 ["GET"] = function (event)
135 return connect_to_bosh("http://[::1]:5280/http-bind", "anon.localhost") 135 return connect_to_bosh("http://[::1]:5280/http-bind", module.host)
136 :next(authenticate) 136 :next(authenticate)
137 :next(restart_stream) 137 :next(restart_stream)
138 :next(bind); 138 :next(bind);
139 end; 139 end;
140 }; 140 };