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); |