plugins/mod_s2s/mod_s2s.lua
changeset 7362 a5a080c12c96
parent 7281 1891854b25ac
child 7453 3ae19750cd46
equal deleted inserted replaced
7361:d0390bc9c5d1 7362:a5a080c12c96
   144 
   144 
   145 module:hook("s2s-read-timeout", keepalive, -1);
   145 module:hook("s2s-read-timeout", keepalive, -1);
   146 
   146 
   147 function module.add_host(module)
   147 function module.add_host(module)
   148 	if module:get_option_boolean("disallow_s2s", false) then
   148 	if module:get_option_boolean("disallow_s2s", false) then
   149 		module:log("warn", "The 'disallow_s2s' config option is deprecated, please see http://prosody.im/doc/s2s#disabling");
   149 		module:log("warn", "The 'disallow_s2s' config option is deprecated, please see https://prosody.im/doc/s2s#disabling");
   150 		return nil, "This host has disallow_s2s set";
   150 		return nil, "This host has disallow_s2s set";
   151 	end
   151 	end
   152 	module:hook("route/remote", route_to_existing_session, -1);
   152 	module:hook("route/remote", route_to_existing_session, -1);
   153 	module:hook("route/remote", route_to_new_session, -10);
   153 	module:hook("route/remote", route_to_new_session, -10);
   154 	module:hook("s2s-authenticated", make_authenticated, -1);
   154 	module:hook("s2s-authenticated", make_authenticated, -1);