Software / code / prosody
Comparison
core/hostmanager.lua @ 4834:878f75ccc4fb
mod_s2s, mod_auth_anonymous, hostmanager: Remove disallow_s2s flag, deprecate the config option of the same name (disable mod_s2s instead), and add 'allow_anonymous_s2s' to separately control s2s for anonymous users
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 11 May 2012 00:56:18 +0100 |
| parent | 4748:1099ff8d9f76 |
| child | 5081:c0c060e450be |
comparison
equal
deleted
inserted
replaced
| 4833:b7a6e86ab87d | 4834:878f75ccc4fb |
|---|---|
| 72 local host_session = { | 72 local host_session = { |
| 73 host = host; | 73 host = host; |
| 74 s2sout = {}; | 74 s2sout = {}; |
| 75 events = events_new(); | 75 events = events_new(); |
| 76 dialback_secret = configmanager.get(host, "core", "dialback_secret") or uuid_gen(); | 76 dialback_secret = configmanager.get(host, "core", "dialback_secret") or uuid_gen(); |
| 77 disallow_s2s = configmanager.get(host, "core", "disallow_s2s"); | |
| 78 send = host_send; | 77 send = host_send; |
| 79 }; | 78 }; |
| 80 if not host_config.core.component_module then -- host | 79 if not host_config.core.component_module then -- host |
| 81 host_session.type = "local"; | 80 host_session.type = "local"; |
| 82 host_session.sessions = {}; | 81 host_session.sessions = {}; |